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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

sp_attach_single_file_db

Status
Not open for further replies.

sahernandez

Programmer
Oct 1, 2002
69
SV
Hi, I have a big problem,
One of my database were "Loading" status,
I used the sp_detach_db, and when I try to attach with the sp_attach_db I got the error "the LDF file is corrupt".
so I deleted and I used "sp_attach_single_file_db" but I'm also got this error.
"Server: Msg 945, Level 14, State 2, Line 1
Database 'SocMaster' cannot be opened because some of the files could not be activated.
Server: Msg 1813, Level 16, State 2, Line 1
Could not open new database 'SocMaster'. CREATE DATABASE is aborted."

SO now I try to create a new database (diferent server) with my SocMaster_Data.mdf , how can I do that, can anybody help me please.

Thxs.
Alexander
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top