Forum Replies Created

Viewing 15 posts - 20,296 through 20,310 (of 26,490 total)

  • RE: Common questions asked in SQL Server DBA Interview

    Welcome to the SSC Community. We frequently go off on tangents from the original question, but usually those tangents are related in some way with the topic (unless it...

  • RE: Are the posted questions getting worse?

    Looks like he'd have deleted his posts if he could have. Doesn't help, however, where those posts had been quoted.

  • RE: Need to count the number of orders placed in one year.

    As it appears you were provided several approaches to solve your problem, which one did you select?

  • RE: query help

    You may want to spend some time reading BOL (Books Online, the SQL Server Help System).

    Change SP_RENAMEDB to EXEC SP_RENAMEDB

  • RE: query help

    Well, its your code. What was else for? If you don't need it, drop it.

  • RE: query help

    The first GO ends your batch. That is what is causing your problem. Try this:

    DECLARE @SQLCmd nvarchar(4000);

    set @SQLCmd = '

    ALTER DATABASE test SET SINGLE_USER WITH ROLLBACK IMMEDIATE

    GO

    SP_RENAMEDB test,test_Old

    GO

    ALTER...

  • RE: query help

    The first GO ends your batch. That is what is causing your problem. Try this:

    DECLARE @SQLCmd nvarchar(4000);

    set @SQLCmd = '

    ALTER DATABASE test SET SINGLE_USER WITH ROLLBACK IMMEDIATE

    GO

    SP_RENAMEDB test,test_Old

    GO

    ALTER...

  • RE: updates during trigger are being rolled back

    Thank you. That explaination is sure to help someone else out in a similar situation. It will provide them with a direction to look at things in their...

  • RE: Challenging query for medical claims analysis

    Perfect! Just the change I made in my copy here at home. Of course the 4 minutes it took on my part would have saved you quite a...

  • RE: updates during trigger are being rolled back

    shane94 (6/23/2009)


    Yea that's what I just finished doing actually 🙂

    and finally found the nested down culprit

    Thanks for the advice

    Since you came looking for help, forum etiquette would have tell all...

  • RE: Challenging query for medical claims analysis

    And, for the record, I have made a simple correction to my code and have the results you are expecting: 3 and 6.

    Show me what you can do with the...

  • RE: Challenging query for medical claims analysis

    ahmet erispaha (6/23/2009)


    Thank you RBarry and Lynn for your solutions. I apologize for the mismatch in the table name between DDL and DML for table InsuranceClaim. I was...

  • RE: Splitting Address Data from one field into 3

    Give the following a try. If not completely successful, let us know what issues you run into.

    Code is in the attachment. Once again I just can't seem to...

  • RE: Restoring Error

    When you applied the last transaction log, did you use the WITH RECOVERY clause or did you use the WITH NORECOVERY clause?

    If the latter, try RESTORE DATABASE dbname WITH RECOVERY

  • RE: Help with SQL algorithm to process transactions

    lmu92 (6/23/2009)


    Lynn Pettis (6/23/2009)


    First of all this:

    UPDATE tablename SET

    @variablename = [i]columnname[/i] = somevalue

    is a documented feature of Microsoft SQL Server. ...

    Hi Lynn,

    would you mind quoting the...

Viewing 15 posts - 20,296 through 20,310 (of 26,490 total)