Export Topaz Phone book to TNG Phone book

Moderators: Leon van Heerden, Luanda_Junzi, Belinda Frick, Lee Hendricks

Export Topaz Phone book to TNG Phone book

Postby Leon van Heerden » Thu Feb 16, 2012 11:20 am

The following SQLs can be used to export the Topaz Phone book to a CSV file format that can then be imported into TNG.

Please take the following into consideration:
  1. Topaz has a Person and Company field in the phonebook, TNG has a Description and a Category field inthe phone book.
  2. The SQLs can either save just the person or just the Company as the Description, or you can save the person as the Description and the Company as the Category.
  3. The SQL will only export entries that has a person or company names filled in. Entries where both fields are blank, will not be exported.
  4. You will have to edit the CSV files a bit, since Topaz exports the data with double quotes around the text fields. A simple search and replace in notepad will work.

This SQL will Export all the Topaz Person entries as TNG Descriptions and the Topaz Companies as TNG Categories.

Code: Select all
Select A."Number", A."Person" , A."Company", A."private" from Master A where (A."Person" <> '') or (A."Company" <> '')


This SQL will Export all the Topaz Person entries as TNG Descriptions and will leave the TNG Categories blank.
Code: Select all
Select A."Number", A."Person" , "", A."private" from Master A where (A."Person" <> '')


This SQL will Export all the Topaz Company entries as TNG Descriptions and will leave the TNG Categories blank.
Code: Select all
Select A."Number", A."Company" , "", A."private" from Master A where (A."Company" <> '')


Once the double quotes (") has been removed, please save the file as phonebook.txt in the 'Import' folder located in the 'C:\Program Files\Datatex\TNG' directory. You may create an Import folder if not present.

Please Note: Your existing TNG phonebook entries will be replaced with this import. Ensure that all entries are correct before importing into TNG.

Use the Topaz Query facility to execute these SQLs and then save the results to CSV files.
----
Leon van Heerden
http://www.datatex.co.za
Leon van Heerden
 
Posts: 332
Joined: Fri Oct 29, 2010 11:21 am
Location: Cape Town

Return to Support Archive's (TNG)

Who is online

Users browsing this forum: No registered users and 1 guest