Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Attaching out of date .ndf files?

Status
Not open for further replies.

jsteph

Technical User
Oct 24, 2002
2,562
US
Hi all,
I have a developement system, and I refresh the data in this with a copy of prod data a couple time a year.

Yet I have a couple of tables where I just want to refresh those on a more frequent basis. These tables are totally and completely logically isolated from the others; ie, no constraints, FK's, or anything connected to other tables, and they exist in their own separate filegroup and .ndf file.

So basically I want to know if I can do a Detach on the dev db, take the newer copy of *just* the .ndf from prod and drop it into the dev box and then do an Attach. I use simple logging and doing a rebuild log wouldn't be an issue.

Can this be done?
THanks,
--Jim
 
No you can't. The closest thing you can do is backup the filegroup then restore the filegroup to the other machine. You'll be better off just backing up the whole database and restoring it to dev.

Denny
MVP
MCSA (2003) / MCDBA (SQL 2000)
MCTS (SQL 2005 / SQL 2005 BI / SQL 2008 DBA / SQL 2008 DBD / SQL 2008 BI / MWSS 3.0: Configuration / MOSS 2007: Configuration)
MCITP (SQL 2005 DBA / SQL 2008 DBA / SQL 2005 DBD / SQL 2008 DBD / SQL 2005 BI / SQL 2008 BI)

My Blog
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top