0% found this document useful (0 votes)
122 views4 pages

ODBCCONF

ODBCCONF.exe is a command line tool that allows configuration of ODBC drivers, data sources, and more. However, it is being removed in a future version of Windows. Administrators should use PowerShell commands instead to manage ODBC drivers and data sources. ODBCCONF.exe can configure drivers and data sources, register DLLs, and set the default location for file-based data sources using various switches and actions.

Uploaded by

Bena Msa
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
122 views4 pages

ODBCCONF

ODBCCONF.exe is a command line tool that allows configuration of ODBC drivers, data sources, and more. However, it is being removed in a future version of Windows. Administrators should use PowerShell commands instead to manage ODBC drivers and data sources. ODBCCONF.exe can configure drivers and data sources, register DLLs, and set the default location for file-based data sources using various switches and actions.

Uploaded by

Bena Msa
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

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

ODBCCONF.exe will be removed in a future version of Windows Data Access


Components. Avoid using this feature, and plan to modify applications that currently
use this feature. You can use PowerShell commands to manage drivers and data
sources. For more information about these PowerShell commands, see Windows Data
Access Components cmdlets.

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.

/A is optional if only one action is specified.


/? Display usage for ODBCCONF.EXE.
/C Processing continues if an action fails.
/E Erase the response file specified with /F when processing is finished.
/F Use a response file, such as odbcconf /F my.rsp.

my.rsp might look like this: REGSVR c:\my.dll

/A is not used in a response file.


/H Display usage (Help). This switch is the same as /?.
/L[mode] filename Send program output to a file in one of three modes: normal (n), verbose (v), and debug (d). D
the DLLs that are loaded by odbcconf.exe.

If you specify /L without a mode, the log file will be empty.

For example, /Lv log.txt.


/R The action will be performed after a reboot.
/S Silent mode. Do not display error messages.

The following actions are available:

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:

/A {CONFIGDRIVER " Driver Name" "CPTimeout=60

/A {CONFIGDRIVER " Driver Name" "DriverODBCV


CONFIGDSN driver_name DSN=name | attributes Adds or modifies a system data source.

Equivalent to the SQLConfigDataSource function.

For example:

/A {CONFIGDSN "SQL Server" "DSN=name | Server=


CONFIGSYSDSN driver_name DSN=name | attributes Adds or modifies a system data source.

Equivalent to the SQLConfigDataSource function.


Action Description
For example:

/A {CONFIGSYSDSN "SQL Server" "DSN=name | Ser


INSTALLDRIVER Equivalent to SQLInstallDriverEx Function.

For information about the keyword-value pairs syntax pa


Specification Subkeys.

For example:

/A {INSTALLDRIVER "Your Driver | Driver=c:\your.d


ConnectFunctions=YYY | DriverODBCVer=03.50 | File
INSTALLTRANSLATOR translator Adds information about a translator to
configuration**driver path the HKEY_LOCAL_MACHINE\SOFTWARE\ODBC
Translators registry key.

Equivalent to SQLInstallTranslatorEx Function.

For information about the keyword-value pairs syntax pa


see Translator Specification Subkeys.

For example:

/A {INSTALLTRANSLATOR "My Translator | Transla


REGSVR dll Registers a DLL.

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.

The value at HKEY_LOCAL_MACHINE\SOFTWARE


DSN\DefaultDSNDir specifies the default location used
when creating a file-based data source.

For example:

/A {SETFILEDSNDIR}
See Also

You might also like