Solved

How to administer ODBC using dos prompt

Posted on 1997-08-29
3
1,860 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
Comment Utility
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
Comment Utility
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
Comment Utility
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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Database tuning – How to start and what to tune. This question is frequently asked by many people, both online and offline. There is no hard and fast rule-of-thumb for performance tuning, however, before beginning the tuning process one should a…
Many companies are looking to get out of the datacenter business and to services like Microsoft Azure to provide Infrastructure as a Service (IaaS) solutions for legacy client server workloads, rather than continuing to make capital investments in h…
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…

743 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

16 Experts available now in Live!

Get 1:1 Help Now