Convert a CTREE Database to MSSQL

Convert a CTREE Database to MSSQL

CTREE Databases are a legacy database format that has been used by some applications.  In order to work with them, you'll need to do the following:

  1. Install CTREE ODBC Drivers
  2. Create a "Table List"
  3. Configure the ODBC Drivers to use the Table List
  4. Use Full Convert to access the database and convert it to MSSQL.

1.  Installing the CTREE Drivers

The CTREE Drivers are attached to this article.  Download and install them.

 

2.  Create a Table List

Each CTREE-based application stores its data files in different locations so you will need to refer to each application individually, however, the table list will be a regular file that will have content similar to the following:

TABLENAME001        E:\DATA\SOMEPATH\TABLENAME001.DAT
TABLENAME002 E:\DATA\SOMEPATH\TABLENAME002.DAT

The table list must use absolute paths to the data files.  If your table list does not have absolute paths, update it so that it does.

 

3.  Configure ODBC Drivers

The CTREE ODBC Drivers are 32-bit drivers and as such, can only be used by 32-bit applications.

To connect to your table list, open the 32-bit ODBC Data Sources on your PC:

mceclip0.png

Then add a new System DNS:

And select the FairCom 32-bit ODBC Driver:

The settings for each application's database will be slightly different so you should refer to the documentation for each specific application, however, some settings are common:

Data Source Name (aka "DSN")

This is the ODBC name you want for your database.  Any name will do.

Script Name

This is the filename (without the path) of your table list file.  It might be named something like FAIRCOM.DB, MyDatabase.txt, or MyTables.  Just make sure that if you open that file, you see content similar to what was described in Step #2.

Data Dictionary Path

This is the path (without the file name) of the table list you created.

4.  Convert the Database to MSSQL

You can now use the 32-bit version of Full Convert by Spectral Core to convert this database from ODBC to SQL Server.


    • Related Articles

    • Convert a Postgres database to MSSQL

      Full Convert by Spectral Core is a robust tool for converting databases from one format to another. The following instructions will walk you through using Full Convert to convert a Postgres database to MSSQL. Launch Full Convert Click New database ...
    • Restore a MSSQL BAK Backup

      To restore a MSSQL BAK database backup, do the following steps: Open Management Studio and connect to the database server. 1. Right-Click on Databases 2. Select Restore Database... In the dialog that appears: 1. Select Device 2. Click the ... button: ...
    • Repair a corrupt MSSQL database

      For law firms with premises based systems like Time Matters you may run into situations where the database has not been maintained and has become inconsistent. This can prevent your ability to create a backup from which you can migrate the customer ...
    • Create a MSSQL BAK Backup

      To create a BAK backup, do the following steps: 1. Shrink the Database (Optional) Open Management Studio and connect to the database server. Change the Recovery Model to Simple: 1. Right click on the database you wish to backup and select Properties. ...
    • Restore a MSSQL BACPAC Backup

      BACPAC files are a specialized set of SQL Scripts that can be restored into Microsoft SQL Server using Management Studio. To restore a BACPAC database, do the following steps. Open Management Studio and connect to the database server. Right-click on ...