Please start any new threads on our new site at We've got lots of great SQL Server experts to answer whatever question you can come up with.

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
Save Password
Forgot your Password?

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

Ask SQLTeam Question

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?



Premature Yak Congratulator

22864 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;en-us;224071;EN-US;314546


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

Posting Yak Master

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.
Also look for sp_attach_db in SQL Server help file BOL

BOL is always a good place to start...


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  
 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.02 seconds. Powered By: Snitz Forums 2000