Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


Info

Please reach out to Appfire support in case of any questions or issues concerning the below manual.

Contact details: Need support ?

Prerequisites:

SQL EXPRESS 2019 installation

  1. Download the installer for your system: SQL Express
  2. Start CUSTOM installation
  3. Choose: New SQL Server stand-alone installation or add features to an existing installation
    1. (optional) - do not install Machine Learning Services
    2. Named instance: TFS4JIRA
    3. Collation: SQL_Latin1_General_CP1_CI_AS
    4. Authentication mode: Mixed mode
    5. SA password: <password>
      1. please setup a custom, strong password
      2. some Windows systems require strong passwords via Group Policy 

...

Info

Users may choose to run the scripts provided below using SQL Server Management Studio (SMSS) instead of SQLCMD commands.

...

Export SQL CE database into an .sql script (schema and data)

  1. Download Export SQLCe tool (unzip to find .exe file)
  2. Run the following command in the directory where you have downloaded Export SQLCe tool (remember to start terminal as the administrator):

    Code Block
    languageactionscript3
    themeRDark
    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



  3. Outcome example
  4. (optional) Ppen 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

...

Start TFS4Jira Synchronizer application pool in IIS

MIGRATION VALIDATION

In order to validate that TFS4JIRA Synchronizer uses SQL Express you can add a new profile or rename one of the existing ones. After that please query "SyncProfiles" using below command

Code Block
languageactionscript3
themeRDark
sqlcmd -S localhost\TFS4JIRA -d TFS4JIRA -q "select * from SyncProfiles" -E -e > DB_migration_validation.txt

You should see your changes in DB_migration_validation.txt. Example content:

Image Modified

ROLLBACK

In case something goes wrong or there will be problems with SQLExpress database, you can always go back to use SQL CE database. In order to do so follow this steps:

...

Info

Please reach out to Appfire support in case of any questions or issues concerning below manual.

Contact details: Need support ?

Prerequisites:

SQL EXPRESS 2019 installation

  1. Download the installer for your system: SQL Express
  2. Start CUSTOM installation
  3. Choose: New SQL Server stand-alone installation or add features to an existing installation
    1. (optional) - do not install Machine Learning Services
    2. Named instance: TFS4JIRA
    3. Collation: SQL_Latin1_General_CP1_CI_AS
    4. Authentication mode: Mixed mode
    5. SA password: <password>
      1. please setup a custom, strong password
      2. some Windows systems require strong passwords via Group Policy 

...

Info

Users may choose to run the scripts provided below using SQL Server Management Studio (SMSS) instead of SQLCMD commands.

...

Export SQL CE database into an .sql script (schema and data)

  1. Download Export SQLCe tool (unzip to find .exe file)
  2. Run the following command in the directory where you have downloaded Export SQLCe tool (remember to start terminal as the administrator):

    Code Block
    languageactionscript3
    themeRDark
    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



  3. Outcome example
  4. (optional) Ppen 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

...

Start TFS4Jira Synchronizer application pool in IIS

MIGRATION VALIDATION

In order to validate that TFS4JIRA Synchronizer uses SQL Express you can add a new profile or rename one of the existing ones. After that please query "SyncProfiles" using below command

Code Block
languageactionscript3
themeRDark
sqlcmd -S localhost\TFS4JIRA -d TFS4JIRA -q "select * from SyncProfiles" -E -e > DB_migration_validation.txt

You should see your changes in DB_migration_validation.txt. Example content:

Image Modified

ROLLBACK

In case something goes wrong or there will be problems with SQLExpress database, you can always go back to use SQL CE database. In order to do so follow this steps:

...