Quantcast
Channel: SQL Server Database Engine forum
Viewing all articles
Browse latest Browse all 12554

SQL 2012 Partitioning and Foreign Keys

$
0
0

Hi,

I have a situation where i have several large tables that i would like to use partitioning on. One of the main reasons, performance and the second is to be able to partition switch old data out so that it can quickly and easily be deleted.

Going through the partition switching documentation it says "No foreign key from another table can reference the source table", which i do have in many cases.

With the exception of disabling all the keys, or just doing basic delete operations, has anyone been able to find another way around archiving old data on partitioned tables with foreign key references please :)

Thank you for any feedback or suggestions!

Rob


Viewing all articles
Browse latest Browse all 12554

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>