Quantcast
Channel: Forum SQL Server Database Engine
Viewing all articles
Browse latest Browse all 15889

Attaching/Merging 2 seperate Files for two tables on same file group in SQL Server 2005?

$
0
0

Hi All,

I have 24 monthly partitions on a table (dbo.EMPLOYEE) in SQL Server 2005 & every day we are receiving around 3 -4 millions records. ETL is taking more than 3-4 hours to load the data and during load Select is very slow.

I thought to create a separate (dbo.EMPLOYEE_TEMP)  table with one partition on same file group [where we have partitions on (dbo.EMPLOYEE)] with different file for daily load. So for ETL destination table will be (dbo.EMPLOYEE_TEMP)  and once load is completed then I want to Merge/attaché this file to  File/Filegroup of dbo.EMPLOYEE.

As I know Attaching/Merging will be very faster and we can move one day data from dbo.EMPLOYEE_TEMP to dbo.EMPLOYEE in few seconds.

I would like to know really this is possible or not, If yes please could you provide me few links or step to achieve the same


Thanks Shiven:) If Answer is Helpful, Please Vote


Viewing all articles
Browse latest Browse all 15889

Trending Articles



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