The attach and detach commands aren't available in SQL 7's Enterprise Manager. You have to run the commands via Query Analyzer. The commands are sp_attach_db and sp_detach_db.
Denny
--Anything is possible. All it takes is a little research. (Me)
Server: Msg 5105, Level 16, State 4, Line 1
Device activation error. The physical file name 'D:\My Project\Sample Data\SFES_Data.mdb' may be incorrect.
There's a remark in the T-SQL Help:
sp_attach_db should only be executed on databases that were previously detached from the database server using an explicit sp_detach_db operation.
I am developing a system using MS SQL 7 as the database. I am creating the system and the MS SQL 7 databases in my home computer.
How can I attach my created MS SQL 7 Databases in the user's computer? Some of the databases I created at Home have numerous records in it already. Does this mean I have to create the same database in the user's computer and input all the records again? Is there a way to attach the databases in the user's computer directly?
Why do you not just create a shell database on the user's computer first w/ the same name as the DB you are trying to detach and attach from yours currently.
Then just do a full Backup of your DB and use that backup file to Restore it over the user's DB on his system.
What I did was to export my SQL database to MS Access and will try import it to the user's computer. What I'm worried about are the compatibility of both database engine. Will tell you how it goes. Hope this also works.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.