Log in
::
Register
::
Not logged in
Home
Tags
Articles
Editorials
Stairways
Forums
Scripts
Videos
Blogs
QotD
Books
Ask SSC
SQL Jobs
Training
Authors
About us
Contact us
Newsletters
Write for us
Recent Posts
Recent Posts
Popular Topics
Popular Topics
Home
Search
Members
Calendar
Who's On
Home
»
SQL Server 2008
»
SQL Server 2008 Administration
»
Data Archival/Purging - through table...
Data Archival/Purging - through table partition switch IN/OUT
Rate Topic
Display Mode
Topic Options
Author
Message
vineet_dubey1975
vineet_dubey1975
Posted Wednesday, March 06, 2013 11:49 PM
Old Hand
Group: General Forum Members
Last Login: Tuesday, May 14, 2013 3:22 AM
Points: 322,
Visits: 332
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
Post #1427791
Bhuvnesh
Bhuvnesh
Posted Thursday, March 07, 2013 1:00 AM
SSCrazy
Group: General Forum Members
Last Login: Tuesday, March 26, 2013 8:41 AM
Points: 2,562,
Visits: 3,451
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----------
While 1 = 1 (Learning SQL....)
Click to get fast response of your post
Post #1427817
vineet_dubey1975
vineet_dubey1975
Posted Thursday, March 07, 2013 2:07 AM
Old Hand
Group: General Forum Members
Last Login: Tuesday, May 14, 2013 3:22 AM
Points: 322,
Visits: 332
My both the DBS are on same file filegroup e.g. PRIMARY.
Post #1427840
Bhuvnesh
Bhuvnesh
Posted Thursday, March 07, 2013 4:06 AM
SSCrazy
Group: General Forum Members
Last Login: Tuesday, March 26, 2013 8:41 AM
Points: 2,562,
Visits: 3,451
vineet_dubey1975 (3/7/2013)
My both the DBS are on same file filegroup e.g. PRIMARY.
Refer the link i posted above
-------Bhuvnesh----------
While 1 = 1 (Learning SQL....)
Click to get fast response of your post
Post #1427890
« Prev Topic
|
Next Topic »
Permissions
You
cannot
post new topics.
You
cannot
post topic replies.
You
cannot
post new polls.
You
cannot
post replies to polls.
You
cannot
edit your own topics.
You
cannot
delete your own topics.
You
cannot
edit other topics.
You
cannot
delete other topics.
You
cannot
edit your own posts.
You
cannot
edit other posts.
You
cannot
delete your own posts.
You
cannot
delete other posts.
You
cannot
post events.
You
cannot
edit your own events.
You
cannot
edit other events.
You
cannot
delete your own events.
You
cannot
delete other events.
You
cannot
send private messages.
You
cannot
send emails.
You
may
read topics.
You
cannot
rate topics.
You
cannot
vote within polls.
You
cannot
upload attachments.
You
may
download attachments.
You
cannot
post HTML code.
You
cannot
edit HTML code.
You
cannot
post IFCode.
You
cannot
post JavaScript.
You
cannot
post EmotIcons.
You
cannot
post or upload images.
Copyright © 2002-2013 Simple Talk Publishing. All Rights Reserved.
Privacy Policy.
Terms of Use.
Report Abuse.