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!

Recognizing Database

Status
Not open for further replies.

Punchinello

Programmer
Apr 25, 2003
116
US
I am running a version of SQL Server on a stand-alone XP workstation. Which version is running I do not know but it came with the Office XP Professional (I'm pretty sure). I can use the Upsize Wizard in MS Access and create databases that are accessible under SQL Server and this makes me happy. [smile]

But wait! Now a client has sent a database (.mdf, .ldf) that contains the data and stored procedures that I need to use and I cannot get SQL Server to recognize it. I have no tools, (but of course the server function runs fine), and am wondering how to add this database to my little server?

p.s. I have read faq962-4344 as to my version and I believe I have the Desktop Engine. I am developing a front-end in Delphi against the client's existing database.
 
in enterprise manager under the database tab, you need to right-click it and choose attach database, then point to where your mdf and ldf are.

Thanks

J. Kusch
 
Thanks for the reply, but I don't have Enterprise Manager. In fact, I have nothing but the SQL Server Service Manager.
 
My problem is solved! You see, I was searching the web for keywords like "recognize" (which, of course, in retrospect was silly), but JayKusch used the correct term "attach".

My next web search netted an article by Alexander Chigrik that explains the usage of built-in stored procedures that attach and detach databases from the server. Here's the link:
So I created a Delphi program, opened a server connection and ran the stored procedures referenced in this article with my own parameters.

[smile] and once again, I'm happy.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top