Forum Replies Created

Viewing 15 posts - 61 through 75 (of 186 total)

  • RE: Output Clause and Identity_Insert

    Sorry guys, I flew right past the part about specifying the fields for the insert into part...thought I just needed the Deleted fields.

  • RE: Output Clause and Identity_Insert

    This is the exact script that I ran:

    Set Identity_Insert Archive..CorrespondenceReference On

    Delete

    FromIARTS..CorrespondenceReference

    OutputDeleted.CorrespondenceReferenceID,

    Deleted.CorrespondenceLogID,

    Deleted.CorrespondenceReferenceTypeID,

    Deleted.CorrespondenceReferenceValue,

    Deleted.CreatedBy,

    Deleted.CreatedDate

    IntoArchive..CorrespondenceReference

    WhereCorrespondenceReferenceID In

    (

    Selectcr.CorrespondenceReferenceID

    FromIARTS..CorrespondenceReference cr

    Inner Join Archive..CorrespondenceLog cl On cl.CorrespondenceLogID = cr.CorrespondenceLogID

    Left Outer Join Archive..CorrespondenceReference acr On acr.CorrespondenceReferenceID = cr.CorrespondenceReferenceID

    Whereacr.CorrespondenceReferenceID IS NULL

    )

    Set@ReferenceCount...

  • RE: Output Clause and Identity_Insert

    Yep, even adding the Identity_Insert stuff it still throws the error "cannot insert unless specifying Indentity_isnert....."

  • RE: Creating a comma-separated list (SQL Spackle)

    Great! Thanks for the help on this. Sorry about the brain-fart on the 'value' thing, I was out all last week sick with vertigo so that's my excuse. 😀

  • RE: Creating a comma-separated list (SQL Spackle)

    CirquedeSQLeil (2/28/2011)


    gregory.anderson (2/28/2011)


    CirquedeSQLeil (2/28/2011)


    gregory.anderson (2/28/2011)


    UMG Developer (2/28/2011)


    gregory.anderson (2/28/2011)


    I have implemented this script but am getting the error "Invalid column name 'Value'" when running it. Is there something special that I...

  • RE: Creating a comma-separated list (SQL Spackle)

    CirquedeSQLeil (2/28/2011)


    gregory.anderson (2/28/2011)


    UMG Developer (2/28/2011)


    gregory.anderson (2/28/2011)


    I have implemented this script but am getting the error "Invalid column name 'Value'" when running it. Is there something special that I need to...

  • RE: Creating a comma-separated list (SQL Spackle)

    UMG Developer (2/28/2011)


    gregory.anderson (2/28/2011)


    I have implemented this script but am getting the error "Invalid column name 'Value'" when running it. Is there something special that I need to do in...

  • RE: Creating a comma-separated list (SQL Spackle)

    I have implemented this script but am getting the error "Invalid column name 'Value'" when running it. Is there something special that I need to do in order for Mgmt...

  • RE: How to tune/speed up a procedure

    Jeff Moden (2/21/2011)


    gregory.anderson (2/18/2011)


    Been searching on how to concatenate rows into a single field and I found a link to a recursive CTE for unknown number of rows to concatenate,...

    ...

  • RE: How to tune/speed up a procedure

    Been searching on how to concatenate rows into a single field and I found a link to a recursive CTE for unknown number of rows to concatenate, I incorporated that...

  • RE: How to tune/speed up a procedure

    Here's the output how it works now:

    Row 1: CustomerNumber 111111, CustomerCredentialID 111123, LicenseRestrictionID 12341234, NCR1 Hi, NCR2 How, NCR3 Are, NCR4 You

    Row 2: CustomerNumber 111111, CustomerCredentialID 111123, LicenseRestrictionID 12341235, NCR1...

  • RE: How to tune/speed up a procedure

    Hey guys, I'm back! You all did such a wonderful job helping me with this one, that I have a new one that I'm working on and am close to...

  • RE: Login failed for user ''NT AUTHORITY\ANONYMOUS LOGON''. [SQLSTATE 28000] (Error 18456)

    Rabia Cinar Yuksel (11/9/2010)


    I had exactly same problem. There are 3 machines. A is my local computer. B, C are sql servers. I was connecting from my local(A) to B...

  • RE: Question about job scheduling

    TheSQLGuru (11/2/2010)


    I hope you understand that if your job takes > 20 minutes to complete you will skip any 'overlapped' executions of the job.

    Yep.

    Right now, it's averaging about 12 minutes...

  • RE: Question about job scheduling

    Ok, now it's doing it every 20 minutes from the start time like I wanted it to...I'm confused.

Viewing 15 posts - 61 through 75 (of 186 total)