SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2000 Forums
 SQL Server Administration (2000)
 Is there a way.
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

AskSQLTeam
Ask SQLTeam Question

USA
0 Posts

Posted - 01/09/2006 :  08:25:05  Show Profile  Visit AskSQLTeam's Homepage  Reply with Quote
Chris writes "Does SQL need to have the server running in order to access the database? I uploaded the two files, AZWD.MDF and AZWD.LDF to a root directory in a website. Is there a way to connect to them without them having to be in a directory: C:\Program Files\Microsoft SQL Server\MSSQL\Data?

Thanks,

Chris"

madhivanan
Premature Yak Congratulator

India
22744 Posts

Posted - 01/09/2006 :  08:55:20  Show Profile  Send madhivanan a Yahoo! Message  Reply with Quote
Instead of copying those file, did you try Restoring the database
Also look for sp_attach_db in SQL Server help file BOL

Also refer these
http://sqlteam.com/forums/topic.asp?TOPIC_ID=59414
http://support.microsoft.com/default.aspx?scid=kb;en-us;224071
http://support.microsoft.com/default.aspx?scid=kb;EN-US;314546

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page

Norwich
Posting Yak Master

Kenya
158 Posts

Posted - 01/10/2006 :  01:05:22  Show Profile  Reply with Quote
The database engine of the instance has to be running for you to acces the contents of the Server.
The MDF and LDF don't have to be in the "C:\Program Files\..." folder they can be anywhere but they must be attached to that instance.
quote:
Also look for sp_attach_db in SQL Server help file BOL



BOL is always a good place to start...

Regards
N

If you want your computer to be faster then throw it out of the window.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.08 seconds. Powered By: Snitz Forums 2000