This question pertains to SQL Server 2000 running on Win2K Pro. I have a database back-up named BSI4200.bkp is my C: drive. Please note that I haven't made the back-up on my machine; I got it from someone. Now to RESTORE this database, I am using the following code:
but this throws the following error:
Logical file 'BSI4200' is not part of database 'BSI4200'. Use RESTORE FILELISTONLY to list the logical file names.
RESTORE DATABASE is terminating abnormally.
I modified the above code & introduced the following code at the very beginning of the code:
keeping the rest of the code as it is but this also throws exactly the same error as before but at the same time says 2 row(s) affected in the 'Messages' pane. The 2 rows are
I don't understand from where is 'BSI4103' coming? I don't have anything named BSI4103. Also there are no directories named SQLData & SQLLog existing in my C: drive! What is happening? How do I restore the database?
Thanks,
Arpan
Code:
RESTORE DATABASE BSI4200
FROM DISK='C:\BSI4200.bkp'
WITH
MOVE 'BSI4200' TO 'C:\Program Files\Microsoft SQL Server\MSSQL$ARPAN\Data\BSI4200.mdf',
MOVE 'BSI4200_log' TO 'C:\Program Files\Microsoft SQL Server\MSSQL$ARPAN\Data\BSI4200.ldf'
Logical file 'BSI4200' is not part of database 'BSI4200'. Use RESTORE FILELISTONLY to list the logical file names.
RESTORE DATABASE is terminating abnormally.
I modified the above code & introduced the following code at the very beginning of the code:
Code:
RESTORE FILELISTONLY
FROM DISK='C:\BSI4200.bkp'
Code:
-------------------------------------------------------------------------------------------
LogicalName PhysicalName Type FileGroupName Size MaxSize
-------------------------------------------------------------------------------------------
BSI4103 C:\SQLData\BSI4200.mdf D PRIMARY 3801088 35184372080640
BSI4103_log C:\SQLLog\BSI4200_log.ldf L NULL 4784128 35184372080640
-------------------------------------------------------------------------------------------
Thanks,
Arpan