Forum Replies Created

Viewing 15 posts - 3,826 through 3,840 (of 7,191 total)

  • RE: Duplicate key was ignored warning returned even when no duplicates are found

    OK, as has previously been requested, please will you post the definition of the stored procedure you mentioned?

    John

  • RE: TempDB best practices - Doubt

    shyamalarakesh (9/27/2013)


    HI !

    As per my knowledge we cannot add .mdf files to tempdb database.just we can take only log backup's to reduce the size of databse

    Unfortunately, your knowledge...

  • RE: Duplicate key was ignored warning returned even when no duplicates are found

    Sounds like you have a unique index with IGNORE_DUP_KEY set to ON. You get this warning when, and only when, you attempt to insert something that would violate the...

  • RE: How to query same table with 2 WHERE clause onto 1 row

    brett.y (9/27/2013)


    in fact the ONLY one I understand

    It's one of four very similar solutions that have been posted. The only ways they differ are as follows:

    (1) Some use common...

  • RE: SSIS Use a conditional statement on a file name?

    Who is Bueller?

    Why don't you put the file in its own folder, then you don't need to worry about the file name - just look for any file in that...

  • RE: Commenting

    That's rough. What are non-technical people doing even looking at code, never mind imposing standards for it?

    John

  • RE: Commenting

    Maybe you could get the powers that be to have a look at the article I linked to? If I remember correctly, the thrust of the argument was that...

  • RE: Commenting

    There was an interesting discussion on comments recently here.

    John

  • RE: CTE

    But my script is simpler

    I know it's a matter of preference, but I'd rather have any complexity tucked away in the CTE definition than in the body of the query,...

  • RE: Indexes missing after restoring a database to a different server

    Does this happen every time, or did it just occur once? Do you have any jobs or triggers on Server B that might remove the indexes?

    John

  • RE: CTE

    Carlo Romagnano (9/25/2013)


    CTE is useless and complicated!

    Clearly not useless, even if your personal preference is not to use them. And no more or less complicated, in my opinion, than...

  • RE: Indexes missing after restoring a database to a different server

    Is this repeatable, or did it just happen once? What statement(s) are you using to restore the database, and what statements (if any) do you run after it?

    You appear...

  • RE: CTE

    paul s-306273 (9/25/2013)


    ...come on, maybe they were really impreseed, but I doubt they 'gasp in wonder'!

    Well, it was on the phone, so maybe I just heard what I wanted to...

  • RE: CTE

    paul s-306273 (9/25/2013)


    Can't see many people ever needing to use this feature.

    I've had developers gasp in wonder when I've shown them how to use code similar to Jamsheer's and thus...

  • RE: CTE

    Good question, thanks. I'd have liked to have seen in the explanation why the third and fourth options were wrong, something like this:

    Option three is not correct because the...

Viewing 15 posts - 3,826 through 3,840 (of 7,191 total)