473,407 Members | 2,320 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,407 software developers and data experts.

Configure Auto DSN

code83z
Hey!
i want to configure AUTO DSN with the help of regedit or by using som line of code in my program or by using any 3rd Party Application.
am workin with VB6 and Access.

i dont want to configure the DSN mannualy while depolying. i want that my application do this job for me itself.
lemme know if somone give me basic to advance idea. abt "how can i do this."

ThanxXx! in Advance!
Best Regards
Bilal Ahmed
Mar 4 '07 #1
3 1700
willakawill
1,646 1GB
The code you are looking for is most likely here
Mar 4 '07 #2
The code you are looking for is most likely here


ThanxXx! but i hv found the way Xactly i want to create Auto DSN
by using below Registry Entries in installation wizard.
or
we can use this by saving it as Registry File Format.
-------------------------------------------------------------------------------------------------------------
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBC.INI\ABC]
"Driver"="C:\\WINDOWS\\system32\\odbcjt32.dll"
"DBQ"="C:\\XYZ.mdb"
"DriverId"=dword:00000019
"FIL"="MS Access;"
"SafeTransactions"=dword:00000000
"UID"=""

[HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBC.INI\ABC\Engi nes]

[HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBC.INI\ABC\Engi nes\Jet]
"ImplicitCommitSync"=""
"MaxBufferSize"=dword:00000800
"PageTimeout"=dword:00000005
"Threads"=dword:00000003
"UserCommitSync"="Yes"

[HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBC.INI\ODBC Data Sources]
"ABC"="Microsoft Access Driver (*.mdb)"
-------------------------------------------------------------------------------------------------------------


Regards
BilazZz Bajwa
Mar 5 '07 #3
hariharanmca
1,977 1GB
ThanxXx! but i hv found the way Xactly i want to create Auto DSN
by using below Registry Entries in installation wizard.
or
we can use this by saving it as Registry File Format.
-------------------------------------------------------------------------------------------------------------
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBC.INI\ABC]
"Driver"="C:\\WINDOWS\\system32\\odbcjt32.dll"
"DBQ"="C:\\XYZ.mdb"
"DriverId"=dword:00000019
"FIL"="MS Access;"
"SafeTransactions"=dword:00000000
"UID"=""

[HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBC.INI\ABC\Engi nes]

[HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBC.INI\ABC\Engi nes\Jet]
"ImplicitCommitSync"=""
"MaxBufferSize"=dword:00000800
"PageTimeout"=dword:00000005
"Threads"=dword:00000003
"UserCommitSync"="Yes"

[HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBC.INI\ODBC Data Sources]
"ABC"="Microsoft Access Driver (*.mdb)"
-------------------------------------------------------------------------------------------------------------


Regards
BilazZz Bajwa



If u use RDO control

then

Expand|Select|Wrap|Line Numbers
  1. Public Sub AutoDSN()
  2.     Dim en As RDO.rdoEnvironment
  3.     Dim cnTest As RDO.rdoConnection
  4.     Dim strAttribs As String
  5.     strAttribs = "defaultdir=" & App.Path & " " _
  6.     & Chr$(13) & " OemToAnsi=No " & Chr$(13) & " DBQ= " & App.Path & "\" & DatabaseName & ".mdb"
  7.     RDO.rdoEngine.rdoRegisterDataSource "<DSN Name>", _
  8.     "Microsoft Access Driver (*.mdb)", True, strAttribs
  9. End Sub

this will make your way simple...
Mar 5 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Markus Wollny | last post by:
Hello! When I try to run ./configure --with-java, it complains that ant doesn't work. However ant is installed, as is the latest Java SDK 1.4.2 from sun, PATH and JAVA_HOME are set correctly; ...
4
by: db2group88 | last post by:
Hello, we are using db2 udb v8.2 on windows. if we need to run a reorg and runstats monthly, i think the best way to do them is via the tool "Configure Automatic Maintainance". I find out that...
0
by: Samuel M. Smith | last post by:
I am trying to build python2.4.2 on an arm 9 running Debian 3 Sarge when I run ./configure it fails with ../configure checking MACHDEP... linux2 checking EXTRAPLATDIR... checking for...
1
by: Markus Wollny | last post by:
Hi! I am trying to build PostgreSQL 7.4.3 with Java enabled; I've got Apache Ant version 1.5 and j2sdk1.4.1_05 installed: Verifiying ant: # which javac /usr/java/j2sdk1.4.1_05/bin/javac #...
14
by: david | last post by:
I have developed web forms including login by using ASP.NET via HTTP. Now I want to secure the connection from client to the server via HTTPS. How can I configure the server or something else to...
0
by: Ken Loomis | last post by:
Hello: On Fedora Core 5 - PHP5 I have read the installation and configure portions of the PHP Manual and searched the web and newsgroups for hours and I cannot figure out whether I can simply...
0
by: Satish S Nandihalli | last post by:
following errors were found on executing configure file: 1) configure: WARNING: thread.h: present but cannot be compiled configure: WARNING: thread.h: check for missing prerequisite headers?...
0
by: hellboss | last post by:
Hi Everyone ! Im using asp.net vs05 , I have a Couple of Table adapter ( in the Xsd file) which is used for updation and Insertion and viewing , What i Exactly needed is a code to Auto...
1
by: Jim McCullars | last post by:
Greetings: Getting configure errors trying to build PHP 5.2.5 under Solaris 9. The configure command I use is this: ../configure --with-mysql --with-gd --with-jpeg-dir=/usr/local...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.