Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Restoring just a single filegroup for support purposes Expand / Collapse
Author
Message
Posted Wednesday, July 3, 2013 4:17 PM
SSC Eights!

SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!

Group: General Forum Members
Last Login: Yesterday @ 1:18 PM
Points: 941, Visits: 1,768
We have a large (ish) production database in our data centre which causes a problem when we need to restore a copy for support purposes.

Currently we have to take a backup, restore it in the data centre. Drop some large tables. Back it up again and then copy it locally.

As this approach isn't ideal (!) I was wondering if we could improve things with the use of filegroups. I could add an additional filegroup to the database and then move the large tables onto the new filegroup. For our support team they could just backup the original filegroup and restore it locally.

The only problem I can see is that we might need to create the missing tables in order for our application to function. (ie. we need the tables but not the data).

I've done some tests and I can't seem to recreate the table/ drop the old table / drop the old file / drop the old filegroup as the filegroup is offline.

For example
"Cannot drop the table 'dbo.LargeTable' because at least part of the table resides on an offline filegroup."

I tried restoring the database with and without the PARTIAL keyword. I've also tried attaching and detaching the restore database without success.

I've attached a script used for my tests

Any advice?

thanks in advance

David






  Post Attachments 
Multiple Filegroup Test.txt (1 view, 4.54 KB)
Post #1470259
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse