Solved

How to administer ODBC using dos prompt

Posted on 1997-08-29
3
1,898 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
[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
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

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…
Azure Functions is a solution for easily running small pieces of code, or "functions," in the cloud. This article shows how to create one of these functions to write directly to Azure Table Storage.
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…

732 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