SSTS Blog
Some news and tidbits that we share
- Offlining the database
- Copying the MDF file
- Attaching the datafile at the new server
i.e.
exec sp_attach_single_file_db @dbname='MY_DB', @physname='H:\SQL2\MY_DB.mdf'
SQL Server will automatically create a new logfile... Moving a database in SQL Server can be done by:
- Offlining the database
- Copying the MDF file
- Attaching the datafile at the new server
i.e.
exec sp_attach_single_file_db @dbname='MY_DB', @physname='H:\SQL2\MY_DB.mdf'
SQL Server will automatically create a new logfile
Read more http://billennis-ssts.blogspot.com/2011/06/you-can-attach-just-mdf-file-in-sql.html
Tags: Untagged
Hits: 15703
Comments
Please login first in order for you to submit comments