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

Attach DB using MSDE

Status
Not open for further replies.

password99

Technical User
Jul 19, 2002
122
US
I have a client using MSDE and needs to attach DB * LOG file to the DB server. How can they do that?

I was thinking they can use the OSQL utility intalled with MSDE? What is the command for attaching it?
 
can i use isql utlility with named instance if there is only one instance installed?
 
Are they attaching the MDF and LDF, (Data and TransLog file)?

If so ... they would use sp_attach_DB. Here is the code straight from BOL (Books OnLine)

EXEC sp_attach_db @dbname = N'pubs',
@filename1 = N'c:\Program Files\Microsoft SQL Server\MSSQL\Data\pubs.mdf',
@filename2 = N'c:\Program Files\Microsoft SQL Server\MSSQL\Data\pubs_log.ldf'



Can they not just attach the DB thru Enterprise Manager?

Thanks

J. Kusch
 
Thanks

Can they not just attach the DB thru Enterprise Manager?
They only have MSDE installed
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top