Friends,
Can I restore my SQL Server 2000 database only by data file. Actually my log file is lost.
What can I do now.
Rajib
Printable View
Friends,
Can I restore my SQL Server 2000 database only by data file. Actually my log file is lost.
What can I do now.
Rajib
Does this mean you have a .BAK file of the database? That would be a full backup...
Please explain further what you have.
Thanks for ur quick response.
I don't have any backup.
I just have the data file that is generated when database is created. And also the log file is damaged.
Is it possible to reload the database only by the data file of the database?
-Rajib
I believe you can attach the DB without the log in Enterprise Manager - it will create a new and empty log.
Hopefully the damaged log didn't have any unwritten cached data in it.
Actually, you can't from Enterprise Manager....
BUT you CAN from Query analyzer..... first delete the log file. Make sure it is NOT the data file.
Then from Query Analyzer, connect to the server.... and issue this command:
sp_attach_single_file_db 'dbname' , 'physical_name'
Here's the entry from BOL
Quote:
Originally Posted by SQL Books Online
You should get a message that state the Log file couldn't be found, so a new one was created. THat's good.
-tg