7 replies
by gbworld
Attach them. I am assuming this is SQL Server 7 or 2000. If so:
1. Open the enterprise manager.
2. Expand down to the server you are trying to attach to.
3. Right click on databases
4. Choose All Tasks --> Attach database
5. Find the mdb filewith the browse button.
If the ldb file is in the same directory, this will conquer your ills. If you have problems with the log file attaching, you can specify the correct directory for the file in the properties. You may have to play a bit if it does not attach properly, but it should not be that difficult. I have yet to have a problem attaching or detaching a database in SQL 7/2000.
Gregory A. Beamer
MCP: +I, SE, SD, DBA
by cheura
by awdfg
I think there is no "attach db" option in SQL Server 7.0 in the enterpirse manager.
You can try the following:
Execute the following command in the Query Analyzer:
EXEC sp_attach_db @dbname = N'oopbone',
@filename1 = N'f:\voodoo\oopbone_data.mdf',
@filename2 = N'f:\voodoo\oopbone_log.ldf'
and your database will get attached.
by cheura
by ukothari
There is no Attach command in SQL 7 Enterprise Manager however you can use system stored procedure to do it.
You can run the following command from Query Analyzer to restore old database.
EXEC sp_attach_db @dbname = N'oopbone',
@filename1= 'F:\voodoo\oopbone.mdf',
@filename2 = N'F:\voodoo\oopbone.ldf'
Hope this help.
Good luck.
Uday Kothari
CTO, Compulink Systems
www.compulnk.com
www.projectbynet.com
by cheura
by cheura
This discussion is closed to new replies.
Trending Web Development posts
Sort by Trending