Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2012 Forums
 Transact-SQL (2012)
 Table Partitioning and Update date

Author  Topic 

jdstl2013
Starting Member

1 Post

Posted - 2013-12-26 : 11:51:18
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

12 Posts

Posted - 2013-12-27 : 04:47:08
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
   

- Advertisement -