|
|
|
Old Hand
      
Group: General Forum Members
Last Login: Saturday, June 01, 2013 7:58 AM
Points: 398,
Visits: 152
|
|
|
|
|
|
Forum Newbie
      
Group: General Forum Members
Last Login: Thursday, April 11, 2013 3:17 AM
Points: 4,
Visits: 17
|
|
How about the case when new data starts to fill your topmost partition? How do you avoid unnecessary data movement?
When I implemented partitioning I had 2 topmost partitions and a SQL Agent Job running a SSIS package to react on the fullness of the second topmost partition. If it were getting full then we split the topmost partition. Only to avoid any kind of data movement.
/Johan Klövstedt
|
|
|
|
|
Old Hand
      
Group: General Forum Members
Last Login: Saturday, June 01, 2013 7:58 AM
Points: 398,
Visits: 152
|
|
This article is actually in three parts. The next two parts describe automation of partition maintenance (adding partitions at the "top" and removing partitions from the "bottom").
My understanding is that they will be published next week and the week after.
Regards,
Hugh Scott
|
|
|
|
|
Grasshopper
      
Group: General Forum Members
Last Login: Thursday, June 13, 2013 11:44 AM
Points: 22,
Visits: 242
|
|
| Awesome. This is really timely. I just got Enterprise approved so I can implement partitioning and this series is going to be a huge help. Is the Powershell script coming in one of the next articles. I didn't see it with this article.
|
|
|
|
|
Ten Centuries
      
Group: General Forum Members
Last Login: Monday, June 10, 2013 10:43 AM
Points: 1,411,
Visits: 4,517
|
|
|
|
|
|
Grasshopper
      
Group: General Forum Members
Last Login: Friday, February 18, 2011 7:17 AM
Points: 19,
Visits: 114
|
|
|
|
|
|
SSC Veteran
      
Group: General Forum Members
Last Login: 2 days ago @ 9:19 AM
Points: 288,
Visits: 1,910
|
|
The article states the following:
First off, you need SQL Server Enterprise Edition or Developer Edition. None of the other editions of SQL Server 2005 or 2008 support partitioning. SQL Server 2000 and earlier do not support partitioning at all. This is not entirely correct, the devil is in the details!
Partitioning is supported, I believe all the way back to SQL Server 2000, but it works in an entirely different way then the more advanced method of partitioning functions. Which are indeed only available in Developer and Enterprise versions. Here is an old script that I posted once on SQL ServerCentral.com to demonstrate partitioning at work using noting but several partition tables and a view to unify them as if they were one large table. And yes, you can insert in such views without writing any instead-of trigger on your part.
Some not so obvious restrictions (there always are those, sigh):
* When inserting records, you need to specify all columns, even those that accept NULL values. * You cannot do a modification trough the view when the query also uses a "select" that references the unified view or one of its patritions.
The script is attached as a file for ease of use and contains some comments to help people on their way.
|
|
|
|
|
SSC Journeyman
      
Group: General Forum Members
Last Login: Thursday, September 20, 2012 5:21 PM
Points: 84,
Visits: 391
|
|
Are there any performance concerns when partitioning with a single filegroup apart from the restrictions on I/O increases from not using multiple disks? We're about to implement a partitioned table, and it looks like we're using just one filegroup. Every document I read talks on and on using 1 filegroup per 1 file, but I can't find much if any info on single filegroup solutions.
Secondly, I've read if you add an index to a partitioned table and you do not add the partitioned column to the index, SQL will add the partitioned column anyway in the background, thereby making any index added to a partitioned table aligned by default. Need some clarity on this point as well, because it has been suggested we do not need to add the partitioned column because of this. I would like to add it regardless just to be sure. Can't do that unless there's a reason.
My SQL Server Blog
|
|
|
|
|
SSCoach
         
Group: General Forum Members
Last Login: Today @ 10:31 AM
Points: 18,857,
Visits: 12,442
|
|
|
|
|
|
SSC Veteran
      
Group: General Forum Members
Last Login: Thursday, May 09, 2013 4:22 PM
Points: 285,
Visits: 1,575
|
|
peter-757102 (12/14/2010)
The article states the following: First off, you need SQL Server Enterprise Edition or Developer Edition. None of the other editions of SQL Server 2005 or 2008 support partitioning. SQL Server 2000 and earlier do not support partitioning at all. This is not entirely correct, the devil is in the details! Partitioning is supported, I believe all the way back to SQL Server 2000, but it works in an entirely different way then the more advanced method of partitioning functions. Which are indeed only available in Developer and Enterprise versions. <snip> That is called a Partitioned View. Although it looks similar, it is different from Partitioned Tables.
@Hugh, does the other parts of your article disucss what happens to the data and you move partions around? Or more importantly, how to avoid data movement? I think this is one area of Partioned Tables that really bites people who don't understand how/why Microsoft setup partioned tables like they did.
|
|
|
|