• muthukkumaran (12/2/2009)


    Hi,

    Read & use the index de-fragmentation script added in my signature.

    Why does your script use deprecated objects (that will be removed in future versions) and global temp tables?

    Also, if you're using Try .. Catch, you shouldn't be using @@Error. There are updated functions in SQL 2005 for getting error details

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass