SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2012 Forums
 Transact-SQL (2012)
 Table Partitioning and Update date
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

jdstl2013
Starting Member

1 Posts

Posted - 12/26/2013 :  11:51:18  Show Profile  Reply with Quote
I have a table partitioned and I want to be able to update data in a particular partition on a monthly basis but want to know the best way of going about it. Do I swap out the data into a stage table and then append the new data to the stage table and then swap the partition back into the live table? Or do I just insert into the existing partition in the live table?

Thanks

cgraus
Starting Member

Australia
12 Posts

Posted - 12/27/2013 :  04:47:08  Show Profile  Reply with Quote
The whole point of having partitions is that the database will maintain them, you just treat the table the same as you normally would, but it will optimise queries based on the partitions you have defined.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.08 seconds. Powered By: Snitz Forums 2000