The following instructions will take you through each step required to create a Universal Database backup of PC Law data.
Below are the high-level steps. You can click on a topic, or scroll through the entire article for step by step instructions.
First, ask all other users in your firm to exit PC law.
Log into PC Law and select Tools > Verify Data Integrity.
Check all the options and then click OK:
If other users in your firm did not exit PC law, you may have a prompt asking them to exit.
To find out where the PC Law data exists, find a PC Law shortcut, right-click on it, and choose "Open File Location".
Repeat this process until you are in a location similar to the following. Then double-click on the LOCALDATA folder.
Open the PCLaw.cf file:
And you will see the following relevant locations:
Navigate to that location.
WARNING: All users must exit PCLAW before proceeding otherwise you will not be able to take a complete backup as database tables that are in use will not be added to the archive.
If you need a comprehensive backup, create a ZIP file of everything in that location.
If you only need practice management data, go into the Data subfolder and create a ZIP of just the DynData and StatData files:
After you have created the archive (zip file) of your data, copy it to a working folder on your Migration Workstation and extract the data.
PCLaw uses the FAIRCOM CTREE database format.
The following PowerShell script generates a table list which you can then use to connect to FAIRCON ODBC.
- $ROOT = "D:\ServerFolders\Company\PCLaw\DATA"
- $OutputFileName = "$ROOT\PCLAW.DB.txt"
- $Folders = @(
- "$ROOT\dyndata",
- "$ROOT\statdata"
- )
- $Files = $Folders `
- | Where-Object { [System.IO.Directory]::Exists($_) } `
- | Get-ChildItem -Filter *.dat `
- | Where-Object { $_.Name -inotlike "TTE*" } # Ignore temporary tables
- $Files
- $Lines = $Files `
- | ForEach-Object { [System.IO.Path]::GetFileNameWithoutExtension($_.FullName) + " " + $_.FullName }
- [System.IO.File]::WriteAllLines($OutputFileName, $Lines)
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 text 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.
Download and extract the appropriate CTREE drivers. Then run the Setup.exe file that is contained in the CTREE Drivers folder.
PCLaw Version | CTREE Driver Version |
PCLaw v14.7 | FairCom CTREE v3.18 |
The CTREE ODBC Drivers are 32-bit drivers and as such, can only be used by 32-bit applications.
After you successfully install the CTREE Drivers the 32-bit ODBC dialog window shown below will automatically open so you can configure an ODBC connection to your PC Law data using the CTREE drivers you just installed.
You can also manually open this dialog by searching ODBC 32-bit from your start menu.
Then add a new System DNS:
And select the FairCom 32-bit ODBC Driver:
Below is an example of the proper settings for a PC Law database.
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 the table list file you created earlier. 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.
Alignment
Alignment must be set to 1 Byte for a PC Law database. That setting can be found by clicking the Options button noted by the green arrow above.
You can now use the 32-bit version of Full Convert by Spectral Core to convert this database from ODBC to SQL Server.
Click New database copy project.
Select ODBC as the Source database type.
DSN will be the Data Source Name (aka "DSN") you used in step 6 when you created the System DSN.
Click Next
Select your target database. You can also type (local) for the Server name.
When you click Next you will receive a warning (shown below) if the database name you selected doesn't already exist on your chosen SQL Server. You can click Yes to create it now. If the database already exists you won't see this warning.
IMPORTANT
There are some additional configuration options we must select prior to starting our copy.
Move the toggle to Project overview and click the PROJECT OVERVIEW button.
You will see something like this as Full Convert analyzes your source table.
On the next screen click Project options from the left menu.
Scroll down until you see this section and type the values shown below in the Data types box.
- tinyint = bigint
- smallint = bigint
- int=bigint
Once done, click the Back button on the top left.
Look through the list of tables on this screen. If you see any in red as shown below then you have a table defined that has 0 columns. These will prevent you from beginning the copy process.
Click the Edit button for each table with a red warning next to it to confirm that there truly are zero columns defined. Then click the checkbox to the left of the table name to indicate to Full Convert to skip those tables.
You are now ready to begin converting the PC Law data to MSSQL. Click the Copy your database button near the top left.
Launch Universal Migrator and click Backup
Select PC Law from the Backup utility list.
Shown in red below is where you select the name of the Universal database you are going to create.
Shown in green is where you will select the PC Law database you've created in steps 1-6
If you're backing up custom field definitions you will need to fill in the StatData folder shown in green above. This will be the full path to where your StatData folder is located. It may look something like.
A:\MIGRATION\LEGACY_PCLaw_TestDb5\DATA\STATDATA
If you're backing up documents you will need to provide the Document Root Path. This is where you want UM to cache the documents locally on your Migration Workstation.
You're now ready to click Next and begin your PC Law backup to a Universal Database.