Link to home
Start Free TrialLog in
Avatar of Dewi
Dewi

asked on

Paradox to MS-SQL

Hi ...,

I need some code, for converting my paradox table into MS-SQL table.
(using ADO is prefered)

and I'll give 100 more points, If someone also can convert the table structure (in paradox format) into MS-SQL format

Thanks

 Dewi
Avatar of cquinn
cquinn
Flag of United Kingdom of Great Britain and Northern Ireland image

A quick and dirty way is to import the table into Access using the standard import filters, then use the SQL upsizing wizard to get it on the SQL server.  If it is a one-time conversion exercise, this will be the quickest way to do it!
Avatar of viveksarin
viveksarin

what cquinn is saying is right. but tell more about the project or problem.
ASKER CERTIFIED SOLUTION
Avatar of cchenoweth
cchenoweth

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
oh..  be sure to open the pDB connection.  I forgot to put that in there.

pdb.open


I used the paradox enum methods to create a database of all of the table structures by database name. Then I wrote scripts to create VBA code to create the tables in Access. We had over 50 paradox databases, with a total of over 3000 tables. Once you have the table and field lists you can create default forms in access.

For paradox for dos version 4.5 you can write a program to parse the table and field lists from the form and report files. These files have extensions such as .f* and .r*. Then you can use the field list from the forms and reports to create the access forms and reports. We have over 80,000 paradox files to convert using this method so I am writing a program that will process the data dictionary and parse the paradox files and then generate the databases and forms in access. The program I am writing also takes out characters such as _, -, #, @, $, ., /, to make the database ODBC compliant.

I am also working on a table of equivalents to convert the 4500 paradox queries that we have to SQL. Let me know if you need to do this.

It will take some work but I will try to list the code for all of this as well.