• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

MSSQL Question:

Retro2001

Senior member
I'm trying to help a friend recover a MSSQL database from a hard drive that devolped bad sectors. I've got the .mdf for the database, but the .ldf was taken by the bad sectors. In browsing through the documentation, I've sorted out that I've got to execute the command AttachDBWithSingleFile, and I've sorted out the syntax for the command. The issue is, not knowing MSSQL well at all, is that I cannot sort out where / how to give the server that command. Any advice would be fantastic.

Thanks!

will
 
If your just trying to reattach the data file with out the transaction log (*.ldf) then you can do that graphically via Enterprise manager or command line in Query Analyzer. That AttachDBWithSingleFile is a api call for C+.
 
If your just trying to reattach the data file with out the transaction log (*.ldf) then you can do that graphically via Enterprise manager or command line in Query Analyzer.

Can you expand a little bit on how to do this either way? Or, point me towards some documentation that explains the process to do the above.

Thanks!

will
 
Back
Top