How To: Copy a JobTraQ database to another JobTraQ server
Copying a JobTraQ database to another JobTraQ server is a complicated process, and it must be performed precisely as described in this document. There is no danger of data loss or corruption on the source server, but the destination server will not operate correctly unless the entire process is performed correctly.
Also, the same version of JobTraQ must be installed on both the source server and the destination server. Otherwise, the destination server will not be able to read the database accurately. To make sure that the process works correctly, we recommend that you upgrade both servers to the latest version of JobTraQ before beginning the transfer process.
Back up the source server’s JobTraQ database
- Open SQL Management Studio on the source server
- Open the JobTraQ database
- Back up the database
If your source server has the BI Module, back up its JobTraQ_Reporting database
- Open SQL Management Studio on the source server
- Open the JobTraQ_Reporting database
- Back up the database
Load the database backup onto the destination server
- Open SQL Management Studio on the destination server
- Open the JobTraQ database
- Restore the backup file into the JobTraQ database, with the Overwrite option checked
- Open the Security folder in the JobTraQ database
- Open the Users folder
- Delete all of the users that are there
- Go to the server’s Security folder, and open the Logins folder
- You will see three JobTraQ users: JobTraQ, JobTraQ_Admin, and JobTraQ_Reporting
- Right-click on the JobTraQ user and click Properties
- Go to the User Mapping page
- Check the “Map” box for the JobTraQ database
- In the Role Membership section, check db_datareader and db_datawriter
- Click OK
- Do the same thing for JobTraQ_Admin, but check db_datareader, db_datawriter, and db_owner
- Do the same thing for JobTraQ_Reporting, but only check db_datareader
- Now, go back to the JobTraQ database and open the Programmability folder
- Open the Functions folder, and go to the Scalar-valued Functions folder
- That list will contain four functions, or six if your server has the JobTraQ Business Intelligence Module installed. For each one, do the following:
- Right-click on the function and click Properties
- Go to the Permissions page
- Click the Add button, click Browse, and select JobTraQ, JobTraQ_Admin, and JobTraQ_Reporting
- Click OK twice to get back to the Permissions page
- Select each user in turn, and check the Grant box for the Execute permission
- Click Ok
If your source server had the BI Module, do the following:
- Open the JobTraq_Reporting database
- Restore the backup file into the JobTraq_Reporting database, with the Overwrite option checked
- Open the Security folder in the JobTraQ_Reporting database
- Open the Users folder
- Delete all of the users that are there
- Go to the server’s Security folder, and open the Logins folder
- You will see two JobTraQ users: JobTraQ, and JobTraQ_Reporting
- Right-click on the JobTraQ user and click Properties
- Go to the User Mapping page
- Check the “Map” box for the JobTraQ_Reporting database
- In the Role Membership section, check db_datareader , db_datawriter, and db_owner
- Click Ok
- Right-click on the JobTraQ_Reporting user and click Properties
- Go to the User Mapping page
- Check the “Map” box for the JobTraQ_Reporting database
- In the Role Membership section, check db_datareader and db_datawriter
- Click Ok
If you are unsure about any stage of this process, please contact support to discuss your questions.