/
Task 1.6.1: Migrate from MS-Access to SQL Server

Badger TraCS Guides

Task 1.6.1: Migrate from MS-Access to SQL Server

Task 1.6.1: Migrate from MS-Access to SQL Server Draft


Purpose: Upgrades your TraCS office database to SQL server because your agency has outgrown MS-Access.

Requirements: Master computer, SQL Server/SQL Server Express installed and accessible on your network, SQL Server Management Studio, SQL Server administration skills.

TraCS will work with any edition of SQL Server, 2019 or better, including Express. it is always the best practice to get the latest version of SQL. 

These instructions should be completed on your TraCS Master Computer.

Note: The Fall 2021 Additional Instructions MUST have been completed before attempting to follow the instructions outlined in this document. If you are unsure whether these instructions have been followed please contact your TraCS Administrator or the Badger TraCS Help Desk for confirmation.

 

 

Did You Know?

See SQL Server 2022 | Microsoft for information on the different editions of SQL Server available from Microsoft.

SQL Server Express is available free of charge from Microsoft.  The download link is here: http://www.microsoft.com/en-us/download/details.aspx?id=29062

If you decide on the Express edition, you need to install ENU\x64\SQLEXPRWT_x64_ENU.exe if you have a 64-bit server or ENU\x86\SQLEXPRWT_x86_ENU.exe if your server is 32-bit.  These EXEs contain the database engine as well as the tools necessary to administer the database.

When installing SQL Server Express, be sure to choose “Express” rather than “LocalDB.”  LocalDB will not work with TraCS.

Preparation:

This can only be completed after a successful install of the Fall 2021 WIPack.

Updating agency to latest WIPack version could be beneficial and needed if any issues come up trying this from minimum version levels mentioned.

  • Master Computer Baseline minimum version: 19.02.35

    • Only Update Baseline on the Master Computer

    • Once agency is successfully migrated to SQL databases.

      • Run the 19.02.20 Baseline on the Master to put it back on same level as the rest of the computers.

  • WIPack minimum version: WIPack220207

Reset Pack Level on Master:

If the agencies Access environment is running the latest pack, you can skip to Step #10

  • Log into TraCS and Export Support.

  • Then continue through the migration steps.

Reset Pack Level on Master:

If the agencies Access environment is running the latest pack, you can skip to Step #10

  • Log into TraCS and Export Support.

  • Then continue through the migration steps.

  1. Delete the files/folders in found in the following directory: C:\ProgramData\Tracs\TraCSClientUpdate\.

  2. Delete the DistributionLog.xml file found in the following directory: C:\ProgramData\Tracs\Settings\.

  3. Delete the whole TraCSPack line in the RegistryKeyName.ini file:

    1. C:\Program Files\TraCS\RegistryKeyName.ini OR

    2. C:\Program Files (X86)\TraCS\RegistryKeyName.ini

    3. Example: TraCS Pack=WIPack130226b

    4. Should look like below: Do not change the TraCS= line in your file.

Gather Current Data:

Gather Current Data:

  1. Create a location to store the files; if you already have a network share create the directory there. i.e. \\myserver\TraCS\MigrationFiles

  2. Log into TraCS Configuration Manager as a user with the SystemAdmin access level.

    1. Navigate to Users | Access Levels

    2. Select SystemAdmin

      1. Click Add

      2. Select FixLogs

      3. Click OK

    3. Click Apply

    4. Click OK

  3. Navigate to Update | Run Distribution File

  4. Run the following five distribution files. These must be run in order. Click OK after each is run and click on Update | Run Distribution File to run the next one, until all five are run:

    1. C:\ProgramData\TraCS\Distribution\Templates\BTDBData.dist.exml

    2. C:\ProgramData\TraCS\Distribution\Templates\BTDBLog.dist.exml

    3. C:\ProgramData\TraCS\Distribution\Templates\BTDBSupportAgency.dist.exml

    4. C:\ProgramData\TraCS\Distribution\Templates\BTDBUsers.dist.exml

    5. C:\ProgramData\TraCS\Distribution\Templates\BTDBSync.dist.exml

      1. This final distribution may take a while; between 5 and 10 minutes.

  5. Minimize TraCS Configuration Manager

  6. Log into the regular TraCS application as a user with the SystemAdmin access level.

    1. Navigate to Tools | Maintenance | FixLogs

    2. Click OK

  7. Click Export Support

    1. Click Yes | OK

    2. Copy file from c:\programdata\tracs\distribution\AgencySupportTables.dist.exml

    3. To \\myserver\TraCS\MigrationFiles\AgencySupportTables.dist.exml

  8. Export Users

    1. Log into Configuration Manager as an user admin.

    2. Click Utilities tab

    3. Click Location Migration button

    4. Click Export Users button left side

      1. Verify correct agency name and click Export Users button

      2. Save file to \\myserver\TraCS\MigrationFiles Note: this should have created one file (###_UsersExport_###.uexp)

  9.   Export Forms

    1. Verify correct agency name and click Export Forms button (This step can take several hours)

    2. Save file to \\myserver\TraCS\MigrationFiles  Note: Should have created one file (agencyID_FormsExport….)

  10. Close TraCS Configuration Manager.

Reset and Setup Master Computer to be a SQL Database - Task 1.4(c)

Reset and Setup Master Computer to be a SQL Database - Task 1.4(c)

Task 1.4(c): Set up Databases, E-Mail, and Proxy Server Connections, SQL Server Alternative

Start Auto-Update on Master Computer - Task 1.5

This step is only needed if you are making a new Master Computer.

Start Auto-Update on Master Computer - Task 1.5

This step is only needed if you are making a new Master Computer.

Skip Step #1 where is says to close Configuration Manager.

Stay logged into the configuration manager for now.

Task 1.5: Master Computer Auto-update

Finish Database Setup – Task 1.6(c)

Finish Database Setup – Task 1.6(c)

Task 1.6(c): Complete Database Setup, SQL Server Alternative

Import Access Data

Import Access Data

  1. Import Support

    1. Update tab

    2. Run Distribution File button

    3. Highlight AgencySupportTables.dist.exml (make sure it has today’s date as a last modified).

    4. Click Open

    5. Click OK on ‘Distribution has completed.’ message box.

  2. Using the Location Migration Tool to import users, data and logs

    1. Click Utilities Tab

    2. Location Migration Button

    3. Click Import Users button

    4. Click 3 dots to select and select the ###_UsersExport_###.uexp file saved in \\myserver\TraCS\MigrationFiles.

    5.  Click Next

    6. Click Next on Location Import

    7. Click Next on Import Access Levels

    8. Review User groups and default. 

    9. Click Next

    10. Click Next

  3. Click Import Forms.

    1. Select the file exported from file (agencyID_FormsExport….) saved in \\myserver\TraCS\MigrationFiles.

  4. Test Office Computers

    1. Create a form and close out. (Makes sure the forms are saving to databases)

    2. End-shift some forms in from an MDC.

    3. Create a distribution.

Best Practices (Redo the Pack Update on Master Computer)

Best Practices (Redo the Pack Update on Master Computer)

Note: It’s a good idea to run the update down again on the Master Computer. This ensures that the data which we imported is going to work in the SQL environment. This step isn’t necessary, we just recommend it in case there are any issue with forms saving, end-shifting, etc.…

Reset Pack Level on Master.

  • Delete the files/folders in the C:\ProgramData\Tracs\TraCSClientUpdate\ folder.

  • Delete the DistributionLog.xml File C:\ProgramData\Tracs\Settings\ folder.

  • Delete the whole TraCSPack line in the RegistryKeyName.ini file

    • C:\Program Files\TraCS\RegistryKeyName.ini or

    • C:\Program Files (X86)\TraCS\RegistryKeyName.ini

      • Example: TraCS Pack=WIPack130226b

      • Should look like below. Do not change the TraCS= line in your file.


Restart Auto-Update on Master Computer

Requirements: Master Computer needs to be connected to the Internet.

  1. Close the configuration manager if it is still open from the previous task.

  2. Start TraCS. 

    1. Click OK.

    2. Log into TraCS using User 00001 and Password “tracs”.

    3. You will receive notifications in you Windows task bar that files are downloading.

    4. When you receive the notification that the download is complete, exit TraCS by clicking the Cancel button on the log in screen.

    5. Start TraCS. 

    6. Click Ok.

    7. Log into TraCS using User 00001 and Password “tracs”.

    8. Click Yes to start the update process.

    9. TraCS will restart when the download is complete.

 

Create Distribution and Update Mobile computers

 

Related content

email badgertracs@dot.wi.gov or call 608-267-2096