I am trying to restore a SQL Server database from a .dat file. An earlier question on how to do this elicited the following answer.
"
You need to know how the '.dat' file was created in order to import it. Use
RESTORE FILELISTONLY to determine if this is a database backup:
RESTORE FILELISTONLY
FROM DISK='C:\MyDatabase.dat'
You can then execute a RESTORE with the desired MOVE options.
RESTORE MyDatabase
FROM DISK='C:\MyDatabase.dat'
WITH
MOVE 'MyDatabase' TO 'C:\DBDataFiles\MyDatabase.mdf',
MOVE 'MyDatabase_Log' TO 'C:\DBDataFiles\MyDatabase_Log.ldf'
If you get an error during the RESTORE FILELISTONLY that states the file
isn't a valid backup, you'll need to investigate further. You might try
opening it using a text editor to see of that provides a clue of the file
format.
"
When I do the RESTORE FILELISTONLY command I get a table with two rows
LogicalName :: PhysicalName :: FileGroupName
Data_V2_1_Data :: C:DATABASES\Data_V2_1_Data.MDF :: PRIMARY
Data_V2_1_Log :: C:DATABASES\Data_V2_1_Log.LDF :: NULL
The .MDF and .LDF files were not provided to me. Are those something I
need?
What does this result mean? What are possible next steps to extract .MDF, ,LDF files?
The RESTORE with MOVE doesn't work, but I am hoping that if I can get help figuring out teh RESTORE FILELISTONLY commands results the other part will fall into place.
Thank you in advance!
-Nik