Article ID: 123008
Article Last Modified on 7/13/2004
File Description
----------------------------------------------------------------------
ODBC.DLL The ODBC Driver Manager. This DLL is called by the
Microsoft Jet database engine when performing ODBC
operations. The Driver Manager handles loading the
correct ODBC driver and dispatching ODBC function
calls to the driver.
ODBCINST.DLL The ODBC Driver Installation library. This DLL
contains Driver installation specific functions.
The ODBC Administrator (ODBCADM.EXE) calls functions
exported from this DLL when installing ODBC
drivers. You may also call functions in this DLL
to automate driver installation.
ODBCADM.EXE The ODBC Administrator program. This program
allows a user to install ODBC drivers and
set up or modify Data Sources.
ODBCINST.HLP The ODBC Administrator help file.
COMMDLG.DLL The Common Dialog DLL. This DLL is used by the
ODBC Administrator program.
CTL3D.DLL The 3D Control DLL. This DLL is used by the ODBC
Administrator program. If you are using ODBC.DLL
version 1.05 or greater, you need to distribute
CTL3DV2.DLL.
PDSODBC.DLL Crystal Reports Physical Server DLL for ODBC. This
DLL is required only if your application uses Crystal
Reports to access an ODBC data source.
<driver>.DLL The ODBC driver(s) that the application will use
to connect to specific Data Sources.
SQL Server: SQLSRVR.DLL*
Oracle 6: SQORA.DLL*
<netlib>.DLL The network library file(s). This file is used
to access the Data Source when using a specific
network protocol.
Named Pipes: DBNMP3.DLL*
TCP/IP (Sybase SQL Server): WDBNOVTC.DLL*
IPX/SPX (Sybase SQL Server): WDBNOVSP.DLL*
SQL*Net Interface: ORA6WIN.DLL*
INSTCAT.SQL* SQL Server Catalog Stored Procedures script.
DRVSSRVR.HLP* SQL Server ODBC Driver help file.
ORASETUP.DLL* Oracle ODBC Driver setup functions.
DRVORACL.HLP* Oracle ODBC Driver help file.
ORACLE.TXT* Oracle ODBC Setup "read me" file.
ODBC.INI Initialization file containing information
about specific Data Sources. The DSN parameter
in the Connect property of the data control or
the OpenDatabase statement corresponds to an
entry in the ODBC.INI. This file must also be
created or modified on the client computer.
ODBCINST.INI The Initialization file that contains
information about installed ODBC drivers. The
RegisterDatabase statement and ODBC Administrator
use the information contained in this file to
set up Data Sources. Entries in ODBCINST.INI
are created either by running an ODBC driver
setup or through the ODBC API. This file must
also be either created or modified on the client
computer.
Dim tmpK As String
Dim tmpS As String
Dim I As Long
tmpK = "dummy"
For I = 1 To 1000
tmpS = Mid$(tmpK, 1, 2)
tmpS = Mid$(tmpK, 1, 2)
tmpS = Mid$(tmpK, 1, 2)
tmpS = Mid$(tmpK, 1, 2)
tmpS = Mid$(tmpK, 1, 2)
tmpS = Mid$(tmpK, 1, 2)
tmpS = Mid$(tmpK, 1, 2)
tmpS = Mid$(tmpK, 1, 2)
tmpS = Mid$(tmpK, 1, 2)
tmpS = Mid$(tmpK, 1, 2)
tmpS = Mid$(tmpK, 1, 2)
tmpS = Mid$(tmpK, 1, 2)
tmpS = Mid$(tmpK, 1, 2)
tmpS = Mid$(tmpK, 1, 2)
tmpS = Mid$(tmpK, 1, 2)
tmpS = Mid$(tmpK, 1, 2)
tmpS = Mid$(tmpK, 1, 2)
tmpS = Mid$(tmpK, 1, 2)
tmpS = Mid$(tmpK, 1, 2)
tmpS = Mid$(tmpK, 1, 2)
Next I
'Dim tmpK As String
'Dim tmpS As String
'Dim I As Long
'tmpK = "dummy"
'For I = 1 To 1000
' tmpS = Mid$(tmpK, 1, 2)
' tmpS = Mid$(tmpK, 1, 2)
' tmpS = Mid$(tmpK, 1, 2)
' tmpS = Mid$(tmpK, 1, 2)
' tmpS = Mid$(tmpK, 1, 2)
' tmpS = Mid$(tmpK, 1, 2)
' tmpS = Mid$(tmpK, 1, 2)
' tmpS = Mid$(tmpK, 1, 2)
' tmpS = Mid$(tmpK, 1, 2)
' tmpS = Mid$(tmpK, 1, 2)
' tmpS = Mid$(tmpK, 1, 2)
' tmpS = Mid$(tmpK, 1, 2)
' tmpS = Mid$(tmpK, 1, 2)
' tmpS = Mid$(tmpK, 1, 2)
' tmpS = Mid$(tmpK, 1, 2)
' tmpS = Mid$(tmpK, 1, 2)
' tmpS = Mid$(tmpK, 1, 2)
' tmpS = Mid$(tmpK, 1, 2)
' tmpS = Mid$(tmpK, 1, 2)
' tmpS = Mid$(tmpK, 1, 2)
'Next I
x% = MsgBox("Do you want to install the ODBC Drivers?", 36,
App.title)
If x% = 6 Then
If Not PromptForNextDisk(2, SourcePath$ + "ODBCADM.EX_") Then
GoTo ErrorSetup
End If
x% = Shell(SourcePath$ & "setup.exe")
End If\VB\SETUPKIT\KITFILES\COMPRESS -r SETUP1.EXE
copy SETUP1.EX_ A:\SETUP1.EX_
Makes connect information for an ODBC data source name available for use by the OpenDatabase function.
RegisterDatabase dsn, driver, silent, attributes
Sub Command1_Click ()
Dim att As String
Dim mydb As Database
att = "Description = SQL Server on server Texas" & Chr$(13)
att = att & "OemToAnsi=No" & Chr$(13) ' Build keywords string.
att = att & "Server=TEXAS" & Chr$(13)
att = att & "Network=DBNMP3" & Chr$(13)
att = att & "Address=\\TEXAS\PIPE\SQL\QUERY" & Chr$(13)
att = att & "Database=Pubs" & Chr$(13)
att = att & "LastUser=Stimpy"
' Update ODBC.INI.
RegisterDatabase "Texas", "SQL Server", True, att
Set mydb = OpenDatabase("Texas", False, False, "ODBC;")
mydb.Close
End Sub
If the database is already registered in the ODBC.INI file, the entry is
updated. If RegisterDatabase fails for any reason, no changes are made to
the ODBC.INI file and an error occurs.
Additional query words: 3.00 4.00
Keywords: kbhowto kbdatabase KB123008