Forum Replies Created

Viewing post 1 (of 1 total)

  • RE: SQL 2005 Rebuild\Reorganize Indexes with Reports

    Hi Guys,

    I hope my script can help

    USE DATABASENAME;

    SET NOCOUNT ON;

    DECLARE @objectid int;

    DECLARE @indexid int;

    DECLARE @partitioncount bigint;

    DECLARE @schemaname nvarchar(130);

    DECLARE @objectname nvarchar(130);

    DECLARE @indexname nvarchar(130);

    DECLARE @partitionnum bigint;

    DECLARE @partitions bigint;

    DECLARE @frag float;

    DECLARE @command...

Viewing post 1 (of 1 total)