Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SQL partitioning on non-enterprise server?

I tried using partition function on my SQL server to partition one of my large table but I got an error saying "Partition function can only be created in Enterprise edition of SQL Server. Only Enterprise edition of SQL Server supports partitioning." So I was wondering how does everyone else that doesn't have Enterprise version solve this?

Any advice would be great!

like image 556
formatc Avatar asked Oct 10 '22 00:10

formatc


1 Answers

The method Oleg Dok is referring to is called a "partitioned view". Microsoft has covered it extensively in the SQL 2000 and 2005 docs. Just Google the term and you'll get lots of advice.

Basically, if you have N tables with identical schemas, you can create a view on top of them that UNIONs them together and exposes a consolidated view of your data. There is a fairly good blog post describing this. You'll hit some hiccups, especially around performance, so choose indexes wisely, keep the stats updated, and make sure to query on them properly.

like image 172
jklemmack Avatar answered Oct 13 '22 00:10

jklemmack