Forum Replies Created

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

  • RE: SQL Transaction Status After Dropped Connection

    The question is. Do you manage the transactions inside the SQL code or from the client?

    You can not get that connection back. If you issued a command and the SQL...

  • RE: SQL Transaction Status After Dropped Connection

    The server will timeout the connection and rollback the transaction.

  • RE: create dateadd from string

    This function should work for you. The advantage over GSquared's solution is - no dynamic SQL and you can use it inline to get as many records as you want...

  • RE: Insertion Problem

    Your code might be working but the last UPDATE is updating ALL the records not the last inserted only. Your WHERE caluse is basically saying WHERE 1 = 1.

  • RE: create dateadd from string

    Create a UDF.

    Inside look for each string 'Week', 'day', 'month' individually , find the number of units per each and add them up individually.

    I am off to a meeting so...

  • RE: Insertion Problem

    I think you meant to do this.

    SET @CODE = SCOPE_IDENTITY()

    SELECT @CODE AS EducationCodeidno

    UPDATE tEDUCATION_CODES set EDucationCodedomainIdno = EducationCodeidno where Educationcodeidno = @CODE

  • RE: Insertion Problem

    OK. Few comments.

    The EducationCode and EducationCodeType fields require a non empty string. Are you sure you passing some value into the @EducationCodeDesc parameter?

    The procedure code you posted. Is...

  • RE: Insertion Problem

    Run this and post what you got

    SELECT SC.name, SC.xtype, SC.length, SC.domain , C.text

    FROM syscolumns SC

    INNER JOIN sysobjects SO ON SC.id = SO.ID

    AND SO.name = 'tEDUCATION_CODES'

    LEFT OUTER JOIN syscomments C ON...

  • RE: Search All SQL Script Objects in All Databases for Text

    jwalker8680 (4/23/2009)


    Except maybe the length issue and I wasn't aware I was running into that issue... 😛

    Lucky you. I found out the hard way. 😀

  • RE: Insertion Problem

    On another note.

    You should not use @@IDENTITY, use SCOPE_IDENTITY instead.

  • RE: Sql Server date format

    The C# should deal with the datetime datatype from the Db correctly if you store the data in datetime objects. For display purposes you should use the proper ToString... methods....

  • RE: Which country is best for Outsourcing?

    Jeff Moden (4/23/2009)


    Muhammad Kashif Azeem (4/23/2009)


    O.k Jeff you are specialize in efficient stored procedure designing. We will chosen you to design good stored Procedures. But we won't give you complete...

  • RE: Which country is best for Outsourcing?

    Outsouring is good for economy.

    It works the same way as all products. I do not know if you noticed but the driving force is buy more, use more, etc. Most...

  • RE: Which country is best for Outsourcing?

    Muhammad Kashif Azeem (4/23/2009)


    O.k Jeff you are specialize in efficient stored procedure designing. We will chosen you to design good stored Procedures. But we won't give you complete project. Because...

  • RE: SELECT interferes with RAISERROR in CATCH

    Really wierd.

    I tired to reproduce the issue on my SQL Express box and the first time it worked (I mean I was able to reproduce the problem).

    Now I can...

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