Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to restore data from a dat file?

Status
Not open for further replies.

Guest_imported

New member
Joined
Jan 1, 1970
Messages
0
We are using SQL SERVER 6.5. We have taken backup(copied) of a database by copying database file (.dat) and not by using Backup command or utility. Now we want to create or restore the database by using the .dat file . As we have not used Backup command I think we can't use Restore command. How to do this?
 
Create a database exactly the same as the database, which the original dat file was for. i.e. size, same number of devices, same names of devices etc.

Stop the SQL Server and copy your original dat file over the top of the empty dat file which belongs to the newly created database. (This should be the same name as you original dat file)

Start SQL Server again and hopefully your database will now be recovered.

Rick.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top