Forum Replies Created

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

  • RE: Conditional Index Rebuild

    Thanks for all the suggestions. Unfortunately, I have already tried both of these variations with no luck. I really think there is something fundamentally wrong here.

    I am actually testing...

  • RE: Conditional Index Rebuild

    Apologies Frank, this was an error on my part when I first added the script. I changed it and it still doesnt work.:ermm:

  • RE: Conditional Index Rebuild

    There is no error returned. I added a print statement to the cursor and the indexes and tables are all correct.

    Just tried the rebuild statement on its own sometimes it...

  • RE: Conditional Index Rebuild

    Nope, still doesnt work. Im banging my head here.

  • RE: Conditional Index Rebuild

    Just seen your post sql_lock. Ill give it a try.

  • RE: Conditional Index Rebuild

    Thanks for the tip. However, I printed the string and there were no errors:

    ALTER INDEX [TestIndex] ON [dbo].[TestTable] REBUILD

    WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF,

    ALLOW_ROW_LOCKS =...

  • RE: Conditional Index Rebuild

    Thanks for the suggestion but I only want to rebuild the indexes in one specific database. Is there any reason why my code wont work?

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