Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
pascal_jimi
Posting Yak Master
167 Posts |
Posted - 2014-06-13 : 02:29:37
|
hi guys I created a new database and want to recover data from a backup this scriptuse mastergorestore database newfrom disk='D:\new.bak'gobut get an error Message 3141, Level 16, State 0, Line 1 The database to be restored was named 'ats342'. Reissue the statement using the WITH REPLACE option to overwrite the 'new' database. Message 3013, Level 16, State 1, Line 1 RESTORE DATABASE is terminating abnormally.http://sql-az.tr.gg/ |
|
tkizer
Almighty SQL Goddess
38200 Posts |
Posted - 2014-06-13 : 11:36:28
|
use mastergorestore database newfrom disk='D:\new.bak'with replacegoYou might need to add the MOVE option too.Tara KizerSQL Server MVP since 2007http://weblogs.sqlteam.com/tarad/ |
 |
|
|
|
|