Moving the Microsoft SQL Server database to a new machine?
1. Backup and Restore Database
- Stop the Secret Server site in Internet Information Server (IIS) to prevent any changes to the database
- You can stop the application pool, or stop IIS website
- Backup the database by accessing SQL Management Studio and right click on the database and choose Backup Database
- Select a file location for the .bak file. Then transfer this file to the new server.
- On the new database server, through SQL Management Studio Restore the database backup
- Create and/or Grant access to the account that will be accessing the database for Secret Server (See the Installation Setup Guide for account creation.)
- We recommend stopping the old database by taking it offline or stopping the database
2. Connect Secret Server to New Database (setting the database connection details)
- Delete the database.config file from the secretserver folder (on the ASP.NET/IIS machine).
- Restart your Secret Server website, so it is running
- Browse to your Secret Server, you will be prompted to enter your new database connection details.
- Enter your new SQL Server and the account information
- Click next and the site will connect to the new Database
- Your site is now running using the new database.
If you need to roll back the change and go back to the original database, then simply start back at Step 1 and move the database back to the original database server.
(LEGACY - ONLY FOR Secret Server 7.1 and older)
2. Connect Secret Server to New Database (setting the database connection details)
- Make sure you are logged out of Secret Server in your web browser.
- Delete the database.config file from the secretserver folder.
- Restart Internet Information Server (IIS) by running "iisreset" from the command line OR recycle the application pool used by Secret Server. (Note: A Default Website 'Restart' is not the same as IISReset and will not reload the config files.)
- Close your browser, open it again, and point it to the Secret Server website
- You will then be taken to the web installer (this is because the database.config file is missing and it thinks you haven't installed yet)
- Go through the web installer to step 3
- On step 3 enter the new database credentials (new server location, username, password) and click next. Do not click "next" once you reach step 4.
- Recycle your application pool or perform an IIS reset
- Go to the home.aspx or login page
- Your site is now running using the new database.
If you have any problems or questions, please contact support.
Article ID: 175, Created On: 8/2/2011, Modified: 3/19/2012