Forum Replies Created

Viewing 6 posts - 1 through 6 (of 6 total)

  • RE: Cursor not returning data

    I finally figured it out. I just had to make sure my open was called in the same transaction the work was being done in. (Before I was...

  • RE: Cursor not returning data

    Nope, they're just a couple inserts and an update.

  • RE: Cursor not returning data

    The cursors are not nested; each one finishes before the next one starts.

  • RE: TRUNCATE and FOREIGN KEYS

    He's probably also truncating Table B.

    You can have Enterprise manager generate the drop and add foreign key constraints with a little fiddling with the "Generate SQL Script ... " feature....

  • RE: Bad performance in TSQL

    I ended up making a temp table and adding an index to it. It sped the query up enormously.

    It doesn't quite solve my underlying problem, though. What's the...

  • RE: Bad performance in TSQL

    How many rows are in each table? Are being inserted?

    About 267,000 rows are being inserted.

    How are you running it when it takes 6 hours to run?

    Inside a stored procedure...

Viewing 6 posts - 1 through 6 (of 6 total)