Forum Replies Created

Viewing 7 posts - 13,456 through 13,463 (of 13,463 total)

  • RE: Comparison of two tables

    there's at least 3 scripts in the script library of this site that compares table structures; i used "Compare Tables" in the search engine to find them here, and this...

  • RE: Backing up deleted Data from several tables

    Other's have suggested this and it's worked well for me;I take no credit for the idea itself: The question is can you change the way the data is "deleted" ....

  • RE: Need a Set-based way of number rows

    Info you are going to use a temp teable, then the Identity() function might help you out. I've used it before and It provides the identity field for the column....

  • RE: Index on every Foreign Key?

    Essentially, that is exactly what I was wondering;

    For fun, I wrote a script that would create an index for every foreign key that did not have an index yet; but...

  • RE: All or none Transaction

    I would suggest using XACT_ABORT; it will automatically rollback a transaction, and stop further statements from executing in the transaction when an error is encountered:

    SET XACT_ABORT ON

    BEGIN TRAN -- with...

  • RE: Nested Cursors

    @@fetch_status is the problem here; it doesn't revert back to the outer loops 'previous' fetch status after it complete's the inner loop.

    wouldn't @@fetch_status only allow the inner loop to run,...

  • RE: Generate SQL Script...

    I just contributed a script that does this; everyone always points at tools to do it, but I felt it was a good challenge to try and write a SQL...

Viewing 7 posts - 13,456 through 13,463 (of 13,463 total)