Link to home
Start Free TrialLog in
Avatar of wendelina
wendelina

asked on

How would you bring back a SQL2005 database if the transaction log was deleted?

Question: if you detached your database, stopped your SQL service, and deleted the transaction log file in SQL 2005, how would you be able to recover - or even bring the database back online?
Avatar of SQL_SERVER_DBA
SQL_SERVER_DBA
Flag of United States of America image

did you backup the database before you detached it?
Have you tried sp_attach_single_file_db
ASKER CERTIFIED SOLUTION
Avatar of ptjcb
ptjcb
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of wendelina
wendelina

ASKER

Create Database AdventureWorks
(Name=Adventureworks, file='C:\Program Files\Microsoft SQL Server\MSSQL.1\Data\AdventureWorks_Log.ndf
FOR ATTACH_REBUILD_LOG
is another one we are going over.
thank you ptjcb.
~W.