Forum Replies Created

Viewing 15 posts - 2,341 through 2,355 (of 3,233 total)

  • RE: HELP! UPDATE QUERY won''''t complete!

    You say 'each load'.  Are you loading your Services table each day?  Why don't you look at getting the LagCategory populated during the load?

  • RE: How to avoid fast growth of Transaction Logs

    You are currently only backing up the data file once per day?  If you have no need to recover to a point-in-time, then consider setting your recovery model to simple. ...

  • RE: How to avoid fast growth of Transaction Logs

    In addition to the questions that Lynn has asked, can you give us some clarification on what 'fast growth' means to you and why you are concerned.  You mentioned having...

  • RE: overflow error

    For each History column in the UPDATE and INSERT, you'll need to encapsulate the column name with the CAST function and modify the casted datatype to match the datatype for...

  • RE: overflow error

    In looking at the data types between like columns in your Header and Audit tables, there are many differences where trying to insert Header table values into your Audit table...

  • RE: overflow error

    Here's your set-based UPSERT (you'll need to add in whatever error processing methods you've standardized or you are used to):

    UPDATE APH

    SET APH.LEA_Code =H.[District Code],

        APH.District_Name =H.[District Name],

        APH.School_Code...

  • RE: overflow error

    Best,

    This looks to be the UPSERT that you've been working on.  Is there a reason why you've chosen a cursor to do this when so many have warned against...

  • RE: Displaying SQL statement of a job running

    Keep in mind that this will only give you the very last statement.  If you need to see more, you may need to run Profiler and try to capture everything...

  • RE: Displaying SQL statement of a job running

    Use DBCC INPUTBUFFER.  If you do not know the SPID responsible for the hang, you may want to either try to narrow the SPID down by reviewing sp_who2 output, or...

  • RE: Primary key violation

    Simon,

    Why would you use a cursor for this??

     

    Best,

    Use Steve's solution or the same solution that you got the last time you posed this question here:

    http://www.sqlservercentral.com/forums/shwmessage.aspx?forumid=8&messageid=354363

  • RE: xp_smtp_sendmail with attachment on netweork

    What about your SMTP server, is it your local SQL Server?  Check and see what account the SMTP service is running under. 

    I had this same problem not long ago,...

  • RE: xp_smtp_sendmail with attachment on netweork

    In what context is xp_smtp_sendmail running? SPROC, DTS, SQLAgent?  Is your SQL Server service running under a domain account or local system?

  • RE: xp_smtp_sendmail with attachment on netweork

    The cannot find file error usually either means that the file does not exist, or that access is denied.  Check the folder and file permissions on the attachment and make...

  • RE: Which transaction log am I using?

    The INSERT operation will be logged in the transaction log for the database where the data is being INSERTED, in this case LinkedServer2.

  • RE: Trigger and deadlocks

    First of all, calling an executable from within a trigger would be considered not a 'best' practice.  I would guess that this executable must then connect itself to the DB? ...

Viewing 15 posts - 2,341 through 2,355 (of 3,233 total)