Solved

How to administer ODBC using dos prompt

Posted on 1997-08-29
3
1,872 Views
Last Modified: 2008-03-03
Is there any hidden option for odbcad32.exe?
What I need to do is to administer data source (add, delete,
admend) using dos prompt command. So how can I do it?
0
Comment
Question by:cwchaw
3 Comments
 
LVL 2

Accepted Solution

by:
Srw earned 20 total points
ID: 1025245
If you're looking for a DOS command that gives the functionality of the ODBC administrator, I don't think there is one, but...
The answers you're looking for reside in the ODBC.ini and ODBCINST.ini.

The ODBCINST.ini file contains information about your drivers.
The ODBC.ini file contains information about each data source.

You can modify the ODBC.ini file by hand to create new data sources, but be very careful and save a backup copy since it's easy to completely screw-up your odbc this way. I also suggest using the administrator the first time, so you get all the correct parameters for each driver.  (Each could be different)

Unfortunately, with Win95, it's possible that these files exist as registry entries in the HKEY_LOCAL_MACHINE/SOFTWARE/ODBC area.

The odbc administrator calls each driver's DLL to run it's own setup, so it doesn't need to know the formats in the INI files.  But, these DLLs require the GUI portion of windows since they use dialog boxes.

Hope this helps!
0
 

Expert Comment

by:rpabst
ID: 1025246
I do not totally agree with srw's answer so i'd like to comment.1. All ODBC entries (in Win95, WinNT) ARE in the registry   (not possibly) so changing ODBC.INI is useless unless you're   still working with windows 3.x2. There are utilities that can create a new ODBC datasource   (restricted to the MDB and SQLServer drivers, as far as     i know.) and delete a source. They are delivered with   Internet Information Server 3.0 and run only on Win32   platforms. These are command-line utilities that can be   called from BAT/CMD files and can be found in the   /inetpub/scripts directory.Good luck.
0
 

Author Comment

by:cwchaw
ID: 1025247
Dear Srw & rpabst,

Thanks for your comment, both of you are right in certain way. So I am working on how to do the setting on the registry file.


0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

CCModeler offers a way to enter basic information like entities, attributes and relationships and export them as yEd or erviz diagram. It also can import existing Access or SQL Server tables with relationships.
Never store passwords in plain text or just their hash: it seems a no-brainier, but there are still plenty of people doing that. I present the why and how on this subject, offering my own real life solution that you can implement right away, bringin…
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

896 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now