Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Create DSN to access a Paradox database

Posted on 2001-07-20
2
Medium Priority
?
489 Views
Last Modified: 2010-05-18
Using VB, I would like to create a DSN for a paradox database. Then, I will use it to access the paradox data (creating an ADO database connection).
Does anyone have a script to create the DSN (full registry entry)?
0
Comment
Question by:pyeloy
  • 2
2 Comments
 
LVL 8

Expert Comment

by:Dave_Greene
ID: 6302947
Why don't you just use a .reg file

Copy this to a file called "para.reg"  then double click it..  and your DSN has been created.  Modify as needed

<FILE START>

REGEDIT4

[HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBC.INI\ParaDox]
"Driver"="C:\\WINNT\\System32\\odbcjt32.dll"
"Description"="New DSN"
"DriverId"=dword:0000021a
"FIL"="Paradox 5.X;"
"SafeTransactions"=dword:00000000
"UID"="C01395"

[HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBC.INI\ParaDox\Engines]

[HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBC.INI\ParaDox\Engines\Paradox]
"CollatingSequence"="ASCII"
"ImplicitCommitSync"=""
"PageTimeout"=dword:00000258
"ParadoxNetPath"="C:\\WINNT\\System32"
"ParadoxNetStyle"="4.x"
"ParadoxUserName"="C01395"
"Threads"=dword:00000003
"UserCommitSync"="Yes"

<FILE END>

Here is a DSN-Less Connection too...
oConn.Open "Driver={Microsoft Paradox Driver (*.db)};" & _
                   "DriverID=538;" & _
                   "Fil=Paradox 5.X;" & _
                   "DefaultDir=c:\dbpath\;" & _
                   "Dbq=c:\dbpath\;" & _
                   "CollatingSequence=ASCII;"

0
 
LVL 8

Accepted Solution

by:
Dave_Greene earned 150 total points
ID: 6302950
Then when you deploy you application, just add your .reg file into the setup and your users DSN will be created by the setup program  :)

Cheers
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Suggested Courses

886 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question