I also found this in my archive :
-- DBCC rebuild_log (dbname [, filename])
-- -- -- -- Create new database with same name, stop SQL Server, replace the MDF file from original database file
-- -- -- -- and restart SQL Server to see whether your database is back in suspect mode.
-- -- -- -- If it does, reset the database to emergency mode and run DBCC Rebuild_Log to recreate the log file.
-- -- -- -- Once database is back to normal, run DBCC checkdb to ensure there is no integrity error,
-- -- -- -- otherwise, you have to BCP the data out.
-- -- --
Allen Cui http://www.sqlservercentral.com did an article on this "Undocumented DBCC Command REBUILD_LOG"
Johan
Learn to play, play to learn !
Dont drive faster than your guardian angel can fly ...
but keeping both feet on the ground wont get you anywhere :w00t:
- How to post Performance Problems
- How to post data/code to get the best help[/url]
- How to prevent a sore throat after hours of presenting ppt
press F1 for solution, press shift+F1 for urgent solution 😀
Need a bit of Powershell? How about this
Who am I ? Sometimes this is me but most of the time this is me