dbTalk Databases Forums  

Recover a database?

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss Recover a database? in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Bruce W...1
 
Posts: n/a

Default Recover a database? - 09-17-2003 , 11:48 AM






I messed up SQL Server 2000 by inadvertently deleting some files. So I
uninstalled and reinstalled it. And I assumed that this blew away my databases.

But alas my database files are where I left them, the MDF and LDF files. Yet
the databases now don't show up in Enterprise Manager.

So how do I put them back into Enterprise Manager? I tried a few thing but got
error messages.

Thanks for your help.

Reply With Quote
  #2  
Old   
Dinesh.T.K
 
Posts: n/a

Default Re: Recover a database? - 09-17-2003 , 11:59 AM






Bruce,

Since you have the mdf and ldf files, try attaching the database(s) back by
doing sp_attach_db.Though a prerequisite is that, the database should be
properly detached , it may sometimes work.

--
Dinesh.
SQL Server FAQ at
http://www.tkdinesh.com

"Bruce W...1" <bruce (AT) noDirectEmail (DOT) com> wrote

Quote:
I messed up SQL Server 2000 by inadvertently deleting some files. So I
uninstalled and reinstalled it. And I assumed that this blew away my
databases.

But alas my database files are where I left them, the MDF and LDF files.
Yet
the databases now don't show up in Enterprise Manager.

So how do I put them back into Enterprise Manager? I tried a few thing
but got
error messages.

Thanks for your help.



Reply With Quote
  #3  
Old   
Bruce W...1
 
Posts: n/a

Default Re: Recover a database? - 09-17-2003 , 03:10 PM



"Dinesh.T.K" wrote:
Quote:
Bruce,

Since you have the mdf and ldf files, try attaching the database(s) back by
doing sp_attach_db.Though a prerequisite is that, the database should be
properly detached , it may sometimes work.

--
Dinesh.
SQL Server FAQ at
http://www.tkdinesh.com

"Bruce W...1" <bruce (AT) noDirectEmail (DOT) com> wrote in message
news:3F68905E.1AD1A01A (AT) noDirectEmail (DOT) com...
I messed up SQL Server 2000 by inadvertently deleting some files. So I
uninstalled and reinstalled it. And I assumed that this blew away my
databases.

But alas my database files are where I left them, the MDF and LDF files.
Yet
the databases now don't show up in Enterprise Manager.

So how do I put them back into Enterprise Manager? I tried a few thing
but got
error messages.

Thanks for your help.
================================================== =========

Not sure exactly what you mean. Looks like a stored procedure. Anyway, attach
is the key word I was looking for. Was able to attach the files, after browsing
to it. Thanks.


Reply With Quote
  #4  
Old   
Dinesh.T.K
 
Posts: n/a

Default Re: Recover a database? - 09-17-2003 , 03:14 PM



Bruce,

Yes, sp_attach_db is a system stored procedure used to attach the database
files.You must have performed the corresponding action in the gui.

--
Dinesh.
SQL Server FAQ at
http://www.tkdinesh.com

"Bruce W...1" <bruce (AT) noDirectEmail (DOT) com> wrote

Quote:
"Dinesh.T.K" wrote:

Bruce,

Since you have the mdf and ldf files, try attaching the database(s) back
by
doing sp_attach_db.Though a prerequisite is that, the database should be
properly detached , it may sometimes work.

--
Dinesh.
SQL Server FAQ at
http://www.tkdinesh.com

"Bruce W...1" <bruce (AT) noDirectEmail (DOT) com> wrote in message
news:3F68905E.1AD1A01A (AT) noDirectEmail (DOT) com...
I messed up SQL Server 2000 by inadvertently deleting some files. So
I
uninstalled and reinstalled it. And I assumed that this blew away my
databases.

But alas my database files are where I left them, the MDF and LDF
files.
Yet
the databases now don't show up in Enterprise Manager.

So how do I put them back into Enterprise Manager? I tried a few
thing
but got
error messages.

Thanks for your help.

================================================== =========

Not sure exactly what you mean. Looks like a stored procedure. Anyway,
attach
is the key word I was looking for. Was able to attach the files, after
browsing
to it. Thanks.



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.