Restore Database in Tier 1 envrioment
2. Create new database.
After you connected to your work server in SSMS(Microsoft SQL Server management Studio) you need to Right click on Databases folder and choose “Restore database”. In table 1 are show settings for database restoration. This process will create a new database called AxDB_new.
Table 1. Settings for database restoration
Picture 2. Restore database
3. Run script to alter database.
After performing steps above, you need to change current main database to imported one. To perform this operation use script below:
--set main db to single connections and drop the existing connections ALTER DATABASE AxDB SET SINGLE_USER WITH ROLLBACK IMMEDIATE --rename datbase to db_old ALTER DATABASE AxDB MODIFY NAME = AxDB_old --set the old db to multi user ALTER DATABASE AxDB_old SET MULTI_USER --rename the new db to the main db name ALTER DATABASE AxDB_new MODIFY NAME = AxDB
Now your environment is ready to perform data upgrade operation.
Comments
Post a Comment