January 20, 2005 at 9:14 am
hi all,
have one question that how can i restore database on my local test server from server in uk. it is hard to copy that back up file from that server to on my testing server. is it possible that from sqlem i can user restore function to use that backup file to restore my dabase!?
thanks in advance
January 20, 2005 at 2:01 pm
You can use DTS task - Trasfer Databases to copy database between servers, but you need to have SQL Server 2000 and it will be some extra network traffic during coping process.
January 20, 2005 at 3:28 pm
but is there a way that i can user restore procedure to restore database from back up file on different database server. is there a command that i can user back up file on different server to restore database on local computer or server?
Thanks
January 21, 2005 at 3:16 am
Don't use the copy database wizard because it detaches the source-db for a while (and reattatches it).
You may want to consider using restore using UNC.
Restore database MyDb
from DISK = '\\myserver\disk$\msSQL\BACKUP\mybackup.BAK'
with MOVE N'mydb_data' TO N'newdatapath\mydb_data.mdf'
, MOVE N'mydb_log' TO N'newlogpath\mydb_log.ldf'
, RECOVERY
Johan
Learn to play, play to learn !
Dont drive faster than your guardian angel can fly ...
but keeping both feet on the ground wont get you anywhere :w00t:
- How to post Performance Problems
- How to post data/code to get the best help[/url]
- How to prevent a sore throat after hours of presenting ppt
press F1 for solution, press shift+F1 for urgent solution 😀
Need a bit of Powershell? How about this
Who am I ? Sometimes this is me but most of the time this is me
January 21, 2005 at 8:09 am
hi there i tried that but it could not open the back up device but it is shared on network! what could it be wrong?
thanks.
January 21, 2005 at 8:36 am
Even though its on a shared network make sure that you have permissions to the network drive and folder that the backup file sits in.
You can try an xp_cmdshell 'dir <>' and see if you have permissions to the drive.
January 21, 2005 at 9:24 am
hi i have set the permission for everyone for full access. but still getting error!
Thanks
January 21, 2005 at 12:31 pm
Full access meaning what? If you mean full access on the computer, that's not good enough. If you don't have the proper access on SQL Server, you probably won't be able to do the backup/restore.
-SQLBill
January 24, 2005 at 6:53 pm
The point is, the user startup for the SQL Agent must have permission to the network share, where the file exists.
Regard's
-DENI-
Viewing 9 posts - 1 through 8 (of 8 total)
You must be logged in to reply to this topic. Login to reply