Partitioning

  • Hi,

    I am uisng SQL Server 2000. Can I partition a huge table in SQL Server 2000 or it only feature in 2005? Does partitioning increase query performance.

    Thanks

    Lee

  • Table partitions were added in SQL 2005.

  • And yes, for large tables, they can increase performance.

    "The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
    - Theodore Roosevelt

    Author of:
    SQL Server Execution Plans
    SQL Server Query Performance Tuning

  • Can you please explain the procedure for partitioning a table ?

    Thank You.

    Regards,
    Raghavender Chavva

  • Straight out of the Books Online:

    CREATE PARTITION FUNCTION myRangePF1 (int)

    AS RANGE LEFT FOR VALUES (1, 100, 1000) ;

    GO

    CREATE PARTITION SCHEME myRangePS1

    AS PARTITION myRangePF1

    TO (test1fg, test2fg, test3fg, test4fg) ;

    GO

    CREATE TABLE PartitionTable (col1 int, col2 char(10))

    ON myRangePS1 (col1) ;

    GO

    "The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
    - Theodore Roosevelt

    Author of:
    SQL Server Execution Plans
    SQL Server Query Performance Tuning

  • Tip :-

    Once you implement partitioned table and are going to implement Sliding window.

    Make sure that you split and merge partitions which are empty.

    Splitting or merging a partition(s) containing millions of rows in it will be

    catastrophic for your IO.

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

You must be logged in to reply to this topic. Login to reply