ArticlesArticles Most Helpful ArticlesMost Helpful Articles Language SettingsLanguage Settings LoginLogin
RSS Feeds
DrillDown Icon Table of Contents
DrillDown Icon MX
DrillDown Icon MANUALS and Other Info for SQL MANEX Client Server
DrillDown Icon Hardware and Software Requirements for Installing SQL Server
DrillDown Icon List of Modules Converted to MANEX Client Server
DrillDown Icon Installing SQL Server
DrillDown Icon System Administrator
DrillDown Icon SQL Backup Options
DrillDown Icon Setup the OLE DB(ADO) for SQL Crystal Reports
DrillDown Icon APIs
DrillDown Icon Code that could be used to find Last Table Modified within SQL
DrillDown Icon Configure SQL Server 2008 R2 to allow Network Connections
DrillDown Icon How to detach and attached databases using the SQL Server Management Studio
DrillDown Icon Restore SQL DB from Backup
DrillDown Icon Setup a SQL Test/Sandbox Database
DrillDown Icon SQLManex Client Server Setup Instructions
DrillDown Icon Setup Folder Permissions to Write "ini" File
DrillDown Icon Setup the ODBC for SQL Crystal Reports
DrillDown Icon Setup a SQL Database Maintenance Plan
DrillDown Icon Setup Task Scheduler to Auto Run MRP
DrillDown Icon Selecting the Authentication Mode
DrillDown Icon Window 10 - Network Disconnect
DrillDown Icon Setup Work Stations
DrillDown Icon Security System
DrillDown Icon Accounting Setup
DrillDown Icon System Setup
DrillDown Icon Operations Manuals
DrillDown Icon System Utilities
DrillDown Icon SQL Server Memory Settings and Performance
DrillDown Icon Definitions
DrillDown Icon How to schedule and automate backups of SQL Server databases in SQL Server Express
DrillDown Icon SQL_FAQ's
DrillDown Icon Customer Relationship Management (CRM)
DrillDown Icon ManEx Minute
DrillDown Icon ManEx Component Exchange
DrillDown Icon ManEx Supplier Directory & Rankings
  Email This ArticlePrint PreviewPrint Current Article and All Sub-Articles
 
How to detach and attached databases using the SQL Server Management Studio
Before you start, please make sure you have a recent backup for any case of data loss. If you are not used in computer administration and database administration please contact an professional. 
 
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 application 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. 
 
a) Connect with Windows Authentication 
(You have Windows administration rights)





b) Connect with SQL Server Authentication 
(You have no Windows administration rights, but you know the password for the SQL Server administrat "sa". In case of Personal Edition this password is set automatically during installation. It is "sa123456"




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




After 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. 






A new window opens where you simply have to press 'Add' 




Again a new window opens where you have to browse for your database. You have to add your databases (only the databases) step by step




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 across services again. In case of Personal Edition simply open across.  



Article ID: 5676