Detach-Attach Databases Using SQL Server Management Studio
Detach-Attach Databases Using SQL Server Management Studio
Please make sure all across services are stopped and the server application
crossAdmin is closed. In case of Personal Edition simply close across.
Please go to Start >> Programs >> SQL Server 2005 >> SQL Server Management
Studio (Express) and open the application.
1. When the applictation opens you have to connect to the database engine or SQL
Server. Please enter the correct SQL Server name and the possible instance name
as shown below. Please note, in case of Personal Editon your databases are always
created in an instance which is named "across". The SQL Server name is your
Computer name.
2. After successful connection expand the folder Databases in the object explorer,
right-click the database you want to detach and select Tasks>>Detach as shown in
screenshot below.
A new window will open. Simply leave it as is and click OK to detach the database.
Afer successful detachment the window automatically closes and the database is not
listed at the Object explorer anymore.
If you want to move all across databases please detach also cTank and cTerm
databases.
After detachment of all databases there is no database listed anymore and looks like
as shown in screenshot below.
3. Now please find the detached databases and database log files by default under
C:/Program Files/Microsoft SQL Server/MSSQL.1/MSSQL/Data and move the files to
the new destination. If you have detached all 3 databases you have to move 6 files (3
databases and 3 database log files).
4. After you have moved the databases go back to the SQL Server Management
Studio object explorer and right-click the folder databases. Select Attach.
When you have added your database the window should look like the screenshot
shown below. Please check the file location and file names if they are correct and
finally click 'OK' to attach these databases.
Finally it looks like the beginning as shown in screenshot below.
Now please reopen the server application crossAdmin and start all acros s services
again. In case of Personal Edition simply open across.
If everything starts smoothly continue with your work. If you run into any problems
please contact us under [email protected].