all groups > sql server dts > august 2004 >
You're in the

sql server dts

group:

question -- copy database?


question -- copy database? fred rosenberg
8/30/2004 9:36:49 PM
sql server dts:
hi,

first, i apologize if this is not quite the correct newsgroup for this
question (feel free to point me to another one.)

I notice that databases seem to be stored in: C:\Program Files\Microsoft
SQL Server\MSSQL\Data -- in two files, an MDF and an LDF. basic question.
can i just copy these two files to another machine, and stick them in the SS
directory for that machine, and have SS recognize the database?

thanks,

fred

Re: question -- copy database? Andrew J. Kelly
8/30/2004 10:46:27 PM
The short answer is no. You can use sp_attach_db in a similar fashion
though. These links will get you going:


http://www.support.microsoft.com/?id=224071 Moving SQL Server Databases
to a New Location with Detach/Attach

http://www.support.microsoft.com/?id=314546 Moving DB's between Servers
http://support.microsoft.com/?id=221465 Using WITH MOVE in a
Restore
http://www.support.microsoft.com/?id=246133 How To Transfer Logins and
Passwords Between SQL Servers
http://www.support.microsoft.com/?id=298897 Mapping Logins & SIDs after a
Restore
http://www.dbmaint.com/SyncSqlLogins.asp Utility to map logins to
users
http://www.support.microsoft.com/?id=168001 User Logon and/or Permission
Errors After Restoring Dump
http://www.support.microsoft.com/?id=240872 How to Resolve Permission
Issues When a Database Is Moved Between SQL Servers
http://www.sqlservercentral.com/scripts/scriptdetails.asp?scriptid=599
Restoring a .mdf
http://www.support.microsoft.com/?id=307775 Disaster Recovery Articles
for SQL Server

http://www.support.microsoft.com/?id=274463 Copy DB Wizard issues

--
Andrew J. Kelly SQL MVP


[quoted text, click to view]

Re: question -- copy database? fred rosenberg
8/31/2004 9:08:01 AM
Thank you Andrew!

Fred

[quoted text, click to view]

AddThis Social Bookmark Button