SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Data Archival/Purging - through table partition switch IN/OUT


Data Archival/Purging - through table partition switch IN/OUT

Author
Message
vineet_dubey1975
vineet_dubey1975
Say Hey Kid
Say Hey Kid (690 reputation)Say Hey Kid (690 reputation)Say Hey Kid (690 reputation)Say Hey Kid (690 reputation)Say Hey Kid (690 reputation)Say Hey Kid (690 reputation)Say Hey Kid (690 reputation)Say Hey Kid (690 reputation)

Group: General Forum Members
Points: 690 Visits: 734
Hi All,

I have a daily partitioned table 'TBL' and I hold data for 30 Day's. I archive data to TBLHistory table by Switch out minimum partion and switch in the partition to TBLHistory.

The Main Table 'TBL' and 'TBLHistory' resides on the same database. As a result size of database is increasing.
My manager ask me to Create a HistoryDB database and move 'TBLHistory' to the history database.

Can i move 'TBLHistory' to HistoryDB and still i can perform switch out and Switch in?
Note:Both DBs are residing on same instance of the server.

(MainDB) -->TBL-->SwithOut to --> Swith In to --> (HistoryDB)-->TBLHistory ?

Please guide me how can i best achive this.

Thanks
Vineet Dubey
Bhuvnesh
Bhuvnesh
SSCertifiable
SSCertifiable (5.4K reputation)SSCertifiable (5.4K reputation)SSCertifiable (5.4K reputation)SSCertifiable (5.4K reputation)SSCertifiable (5.4K reputation)SSCertifiable (5.4K reputation)SSCertifiable (5.4K reputation)SSCertifiable (5.4K reputation)

Group: General Forum Members
Points: 5436 Visits: 4076
vineet_dubey1975 (3/6/2013)[hr
Can i move 'TBLHistory' to HistoryDB and still i can perform switch out and Switch in?
Note:Both DBs are residing on same instance of the server.
NO . for switch-in & switch out , tables should be resided on partitoned filegroups. see this link http://sqlserverpedia.com/wiki/Switching_Partitions_-_Example

-------Bhuvnesh----------
I work only to learn Sql Server...though my company pays me for getting their stuff done;-)
vineet_dubey1975
vineet_dubey1975
Say Hey Kid
Say Hey Kid (690 reputation)Say Hey Kid (690 reputation)Say Hey Kid (690 reputation)Say Hey Kid (690 reputation)Say Hey Kid (690 reputation)Say Hey Kid (690 reputation)Say Hey Kid (690 reputation)Say Hey Kid (690 reputation)

Group: General Forum Members
Points: 690 Visits: 734
My both the DBS are on same file filegroup e.g. PRIMARY.
Bhuvnesh
Bhuvnesh
SSCertifiable
SSCertifiable (5.4K reputation)SSCertifiable (5.4K reputation)SSCertifiable (5.4K reputation)SSCertifiable (5.4K reputation)SSCertifiable (5.4K reputation)SSCertifiable (5.4K reputation)SSCertifiable (5.4K reputation)SSCertifiable (5.4K reputation)

Group: General Forum Members
Points: 5436 Visits: 4076
vineet_dubey1975 (3/7/2013)
My both the DBS are on same file filegroup e.g. PRIMARY.
Refer the link i posted above

-------Bhuvnesh----------
I work only to learn Sql Server...though my company pays me for getting their stuff done;-)
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search