Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


List Partitioning in SQL Server 2012


List Partitioning in SQL Server 2012

Author
Message
SQListic
SQListic
SSC Veteran
SSC Veteran (258 reputation)SSC Veteran (258 reputation)SSC Veteran (258 reputation)SSC Veteran (258 reputation)SSC Veteran (258 reputation)SSC Veteran (258 reputation)SSC Veteran (258 reputation)SSC Veteran (258 reputation)

Group: General Forum Members
Points: 258 Visits: 1115
Hi I got a requirement to partition the table on year, the column datatype is int and the values are like 03,04,05,06,07,08,09,10,11,12,13,14 etc..

Does SQL Server only supprts RANGE partitioning?

Can someone help me in partitioning the table here?


Thanks a alot in advance
Matan_Yungman
Matan_Yungman
SSC Rookie
SSC Rookie (29 reputation)SSC Rookie (29 reputation)SSC Rookie (29 reputation)SSC Rookie (29 reputation)SSC Rookie (29 reputation)SSC Rookie (29 reputation)SSC Rookie (29 reputation)SSC Rookie (29 reputation)

Group: General Forum Members
Points: 29 Visits: 221
Hi,
SQL Server supports (only) range partitioning.
Nevertheless, I wouldn't suggest doing it without understanding well the capabilities and overhead related to it.

I'd start with the following article:
http://msdn.microsoft.com/en-us/library/ms190787.aspx
Jason-299789
Jason-299789
Ten Centuries
Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)

Group: General Forum Members
Points: 1132 Visits: 3229
Another good article is this one https://www.simple-talk.com/sql/database-administration/gail-shaws-sql-server-howlers/ by Gail Shaw.

If you are considering doing this simply to try and increase the performance of queries you need to have a rethink, Partitioning is more for data management, although you can get a slight uplift in performance on certain queries.

If you do decide to go with partitioning consider using an approach that allows data to be 'moved' into less frequently used storage, using a sliding window approach, I think Paul White had a blog that detailed this gives a basic concept http://weblogs.sqlteam.com/dang/archive/2008/08/30/Sliding-Window-Table-Partitioning.aspx

One consideration is how frequently data is to be accessed how often will you be running queries for data that's over N years old. Example Partitions for Data 10 years and older, 5-9 years, 2-4 Years old, Previous Year, and Current Year.

you can then look at moving older data onto less efficient storage (depending on circumstances) with the fastest disks being reserved for the more recent data and thus most probably the most frequently accessed data.

The final consideration is the amount of code refactoring that is going to be required to align queries to the new structure, which is something that a lot of people forget.

_________________________________________________________________________
SSC Guide to Posting and Best Practices
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search