Prerequisites:
- Install SQL Express (steps below)
- Install Export SQLCe tool
- (optional) Install SQL Server Management Studio(SMSS)
SQL EXPRESS 2019 installation
- Download the installer for your system: SQL Express
- Start CUSTOM installation
- Choose: New SQL Server stand-alone installation or add features to an existing installation
- (optional) - do not install Machine Learning Services
- Named instance: TFS4JIRA
- Collation: SQL_Latin1_General_CP1_CI_AS
- Authentication mode: Mixed mode
- SA password: <password>
- please setup a custom, strong password
- some Windows systems via Group Policy require strong passwords
...
Stop TFS4JIRA Synchronizer application pool in IIS using IIS Manager (cmd: inetmgr)
Export SQL CE database into an .sql script (schema and data)
- Download Export SQLCe tool (unzip to find .exe file)
Run the following command in the directory where you have downloaded Export SQLCe tool (remember to start terminal as the Administrator):
Code Block language actionscript3 theme RDark ExportSqlCe40.exe "Data Source=C:\<tfs4jira synchronizer installation directory>\App_Data\config.sdf;Max Database Size=4000;" Synchronizer_SQLCE_DB.sql
Info When the resulting script size exceeds 18,528 KB, ExportSqlCe40.exe tool automatically breaks down the output files into chunks with index numbers. Check the table below for the expected output and run time:
config.sdf file size
# of chunks / .sql file count
Total size of .sql scripts
Data migration duration
787 MB
75
1.31 GB
~1.5 hour
1.53 GB
149
2.62 GB
~2.5 hour
3.05 GB
298
5.25 GB
~5 hours
- outcome example
- (optional) open generated file using SSMS and make sure that file is not empty, you should see SQL commands creating schema and adding data in file.
Create new DB in SQLExpress
...