Can I xcopy a sqlserver db and log file to my new computer?
UPdate the db is on a hard drive that is not in a computer anymore, that is why I ask if I can just xcopy
Can I xcopy a sqlserver db and log file to my new computer?
UPdate the db is on a hard drive that is not in a computer anymore, that is why I ask if I can just xcopy
Detach it from the database from whatever server it's on now. Then, go for it. Once it's on the new machine, attach it to that server, and you'll be peachy keen.
Hi,
you can copy .mdf and .ldf files on your computer from a server. Just think about detach the database before (in the client tool), copy files and re attach the DB.
You have a few options:
beware that when you attach the database it does so in the current user context. This may cause some issues if the database owner is not sa, so make sure you login as sa into SSMS.
Whatever method you use below, you may need to copy SQL Server logins. To do this, use sp_help_revlogin