Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

How to administer ODBC using dos prompt

Posted on 1997-08-29
3
Medium Priority
?
1,913 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 40 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Lotus Notes has been used since a very long time as an e-mail client and is very popular because of it's unmatched security. In this article we are going to learn about  RRV Bucket corruption and understand various methods to Fix "RRV Bucket Corrupt…
Instead of error trapping or hard-coding for non-updateable fields when using QODBC, let VBA automatically disable them when forms open. This way, users can view but not change the data. Part 1 explained how to use schema tables to do this. Part 2 h…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Suggested Courses

636 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