Solved

Create DSN to access a Paradox database

Posted on 2001-07-20
2
481 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 50 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

Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

Question has a verified solution.

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

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…

734 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