ODBCCONF
ODBCCONF
EXE
• Article
• 03/01/2023
• 6 contributors
Feedback
ODBCCONF.exe is a command-line tool that allows you to configure ODBC drivers and
data source names.
Note
Syntax
ConsoleCopy
ODBCCONF [switches] action
Arguments
switches
Zero or more switch options. For the list of available switches, see the Remarks section,
later in this topic.
action
One action to perform. For the list of available options, see the Remarks section.
Remarks
The following switches are available:
Switch Description
/A {action} Specify an action.
Action Description
CONFIGDRIVER driver_name**driver-specific Loads the appropriate driver setup DLL and calls the Co
configuration params
Equivalent to the SQLConfigDriver function.
For example:
For example:
For example:
For example:
Equivalent to regsvr32.exe.
For example:
/A {REGSVR c:\my.dll}
SETFILEDSNDIR When HKEY_LOCAL_MACHINE\SOFTWARE\ODB
DSN\DefaultDSNDir does not exist, the SETFILEDSND
value at
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\W
appended with \ODBC\Data Sources.
For example:
/A {SETFILEDSNDIR}
See Also