RE: SQL server restore
From: Baisong Wei[MSFT] (v-baiwei_at_online.microsoft.com)
Date: 03/19/04
- Next message: giovanni: "Error in Enterprise Manager SQL7"
- Previous message: giovanni: "Re: SQL7 standalone"
- In reply to: Ilya: "RE: SQL server restore"
- Next in thread: Ilya: "RE: SQL server restore"
- Reply: Ilya: "RE: SQL server restore"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 19 Mar 2004 08:47:19 GMT
Hi llya,
Thank you for your update. So, you could not even restored the backup from
the backup from Server A? Could it be restored on Server A? Before you try
this, please take another approach as follows:
1) When you create a new database, you just run
exec sp_configure 'allow updates', 1
reconfigure with override
go
update sysdatabases set status =0 where name = 'dtpath'
go
exec sp_configure 'allow updates', 0
reconfigure with override
restore database pubs from disk='<The backup file path>' with recovery
-- note that the 'with recovery' option should be added
go
How about it ?
2) If it does not work in Server A, without any other application using the
databaser 'dtpath' ( you could use sp_who to monitor if any process is
using the database 'dtpath'), right click the 'dtpath' and select 'all
tasks', choose 'detach database'. then copy the dtpath.mdf to the Server B,
in the Enterprise Manager of the Server B, delete the database 'dtpath' (
or run 'drop database dtpath' in Query Analyzer) and run DBCC CHECKDB on
all other databases, then right click the 'Databases' and choose 'All
tasks' and choose 'Attach database', then choose the 'dtpath.mdf copied
from the Server A. you may have some warnings that the dtpath.ldf is not
correct but press 'OK' and the system will create a new log file for it.
Could these method restored a database on the Server B?
Looking forward to your reply. Thanks.
Best wishes
Baisong Wei
Microsoft Online Support
----------------------------------------------------
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
Please reply to newsgroups only. Thanks.
- Next message: giovanni: "Error in Enterprise Manager SQL7"
- Previous message: giovanni: "Re: SQL7 standalone"
- In reply to: Ilya: "RE: SQL server restore"
- Next in thread: Ilya: "RE: SQL server restore"
- Reply: Ilya: "RE: SQL server restore"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|