Re: copy database via tapefile no SQL 2005
- From: "Mark" <Scollop027@xxxxxxx>
- Date: Wed, 16 Aug 2006 21:26:22 +0200
Hello Erland,
good tip, thank you very much !
I haven´t seen it :-/
regards Mark
"Erland Sommarskog" <esquel@xxxxxxxxxxxxx> schrieb im Newsbeitrag
news:Xns98203142E059Yazorman@xxxxxxxxxxxx
Mark (Scollop027@xxxxxxx) writes:"C:\Program
if you got a tape file how can you restore the contained database onto a
newly installed server? I choose Restore Database From Device then I
choose DB and select same DB in combobox "To Database" but error
occured:
TITLE: Microsoft SQL Server Management Studio
Restore failed for Server '...'. (Microsoft.SqlServer.Smo)
ADDITIONAL INFORMATION:
System.Data.SqlClient.SqlError: Directory lookup for the file
withFiles\Microsoft SQL Server\MSSQL.1\MSSQL\DATA\KidDatabase.mdf" failed
Server\MSSQL.1\MSSQL\DATA\KidDatabase.mdf',the operating system error 3(error not found). (Microsoft.SqlServer.Smo)
what can I do to handle this problem?
First do
RESTORE FILELISTONLY FROM TAPE = 'tapedevice'
this will give you the logical names of the files of the database. Then
do:
RESTORE DATABASE db FROM TAPE = 'tapedevice' WITH
MOVE 'datafile' TO
C:\Program Files\Microsoft SQL
MOVE 'logfile' TOServer\MSSQL.1\MSSQL\DATA\KidDatabase.ldf',
C:\Program Files\Microsoft SQL
REPLACE
Here I've used the path from your error message. Howver, the error message
indicates that this is a non-existing path, so you may have to examine
where there is place on the server to put the databases.
--
Erland Sommarskog, SQL Server MVP, esquel@xxxxxxxxxxxxx
Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx
.
- References:
- copy database via tapefile no SQL 2005
- From: Mark
- Re: copy database via tapefile no SQL 2005
- From: Erland Sommarskog
- copy database via tapefile no SQL 2005
- Prev by Date: SQL select statement needed
- Next by Date: Slow Insert in SQL Server
- Previous by thread: Re: copy database via tapefile no SQL 2005
- Next by thread: clustered vs. non clustered
- Index(es):
Relevant Pages
|