Quantcast
Channel: SQL Server Database Engine forum
Viewing all articles
Browse latest Browse all 12963

Detaching and Reattach ndf files from different copies of a database

$
0
0

Hi,

This question may be very basic, but I'm wondering if it's possible, and if not what is the technical reason behind it.

I have two databases, Database A and Database B.  What I would like to do is truncate the tables in database A, detach it and make a windows copy of the files to another area, then reattach these files to database B. Everything is identical schema wise apart from the database name.  

Is this possible? If not, why?

Thanks for any help.


Viewing all articles
Browse latest Browse all 12963

Trending Articles



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