![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
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. |
#3
| |||
| |||
|
|
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. |
#4
| |||
| |||
|
|
"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. |
![]() |
| Thread Tools | |
| Display Modes | |
| |