For Standard Security: oConn.Open "Driver={Microsoft Access Driver (*.mdb)};" & _ If you are using a Workgroup (System database): oConn.Open "Driver={Microsoft Access Driver (*.mdb)};" & _ If want to open up the MDB exclusively oConn.Open "Driver={Microsoft Access Driver (*.mdb)};" & _ If MDB is located on a Network Share oConn.Open "Driver={Microsoft Access Driver (*.mdb)};" & _ If MDB is located on a remote machine - Call an XML Web Service that contains data access web methods for MDB
If you don't know the path to the MDB (using ASP) <% ' ASP server-side code Make sure the Web identity has read/write permissions to the directory
If you don't know the path to the MDB (using VB) oConn.Open "Driver={Microsoft Access Driver (*.mdb)};" & _ This assumes the MDB is in the same directory where the application is running. For more information, see: Microsoft Access Driver Programming Considerations To view Microsoft KB articles related to Microsoft Access Driver, click here
oConn.Open "Driver={Client Access ODBC Driver (32-bit)};" & _ For more information, see: oConn.Open "Driver={Microsoft dBASE Driver (*.dbf)};" & _ Then specify the filename in the SQL statement: oRs.Open "Select * From user.dbf", oConn, , ,adCmdText Note: MDAC 2.1 (or greater) requires the Borland Database Engine (BDE) to update dBase DBF files. (Q238431). For more information, see: dBASE Driver Programming Considerations To view Microsoft KB articles related to Microsoft dBASE Driver, click here oConn.Open "Driver={Microsoft Excel Driver (*.xls)};" & _ For more information, see: Microsoft Excel Driver Programming Considerations To view Microsoft KB articles related to Microsoft Excel Driver, click here If using INFORMIX 3.30 ODBC Driver oConn.Open "Dsn='';" & _ oConn.Open "Dsn=myDsn;" & _ If using INFORMIX-CLI 2.5 ODBC Driver oConn.Open "Driver={Informix-CLI 2.5 (32 Bit)};" & _ For more information, see: Informix Developer Zone, Connection to ODBC Data Source,
For the local machine oConn.Open "Driver={Easysoft IB6 ODBC};" & _ For a remote machine oConn.Open "Driver={Easysoft IB6 ODBC};" & _ For more information, see: Connecting to InterBase and Easysoft
For the local machine oConn.Open "Driver={INTERSOLV InterBase ODBC Driver (*.gdb)};" & _ For a remote machine oConn.Open "Driver={INTERSOLV InterBase ODBC Driver (*.gdb)};" & _ For more information, see: Google Search (if you know a direct URL email me) oConn.Open "Driver={Lotus NotesSQL 3.01 (32-bit) ODBC DRIVER (*.nsf)};" & _ For more information, see: Connection keywords oConn.Open "Driver={MIMER};" & _ For more information, see: Opening a Connection
To connect to a local database (using MyODBC Driver) oConn.Open "Driver={mySQL};" & _ To connect to a remote database oConn.Open "Driver={mySQL};" & _ To connect to a local database (using MySQL ODBC 3.51 Driver) oConn.Open "DRIVER={MySQL ODBC 3.51 Driver};" & _
Or oConn.Open "DRIVER={MySQL ODBC 3.51 Driver};" & _ Note: When you first install MySQL, it creates a "root" user account (in the sys datbase's user table) with a blank password. For more information, see: Programs Known to Work with MyODBC For the current Oracle ODBC Driver from Microsoft oConn.Open "Driver={Microsoft ODBC for Oracle};" & _ For the older Oracle ODBC Driver from Microsoft oConn.Open "Driver={Microsoft ODBC Driver for Oracle};" & _ For more information, see: Connection String Format and Attributes To view Microsoft KB articles related to Microsoft ODBC for Oracle, click here oConn.Open "Driver={Oracle ODBC Driver};" & _ Where: The DBQ name must be defined in the tnsnames.ora file For more information, see: Oracle8 ODBC Driver Help, Oracle ODBC FAQs, [asporacle] listserv FAQs, and ASPDB Oracle oConn.Open "Driver={Oracle ODBC Driver for Rdb};" & _ For connecting to a database over TCP/IP,
oConn.Open "Driver={Oracle ODBC Driver for Rdb};" & _ For connecting to a database over DECNET using a specific class,
oConn.Open "Driver={Oracle ODBC Driver for Rdb};" & _ For connecting to a database over TCP/IP through a class
oConn.Open "Driver={Oracle ODBC Driver for Rdb};" & _ For more information, see: Oracle ODBC Driver for Rdb oConn.Open "Driver={Microsoft Paradox Driver (*.db )};" & _ Note: MDAC 2.1 (or greater) requires the Borland Database Engine (BDE) to update Paradox ISAM fDBF files. (Q230126). Note: There is an extra space after "db" in the Paradox Driver name For more information, see: Paradox Driver Programming Considerations To view Microsoft KB articles related to Microsoft Paradox Driver, click here Using the newer SQL Native Client driver (for SQL Server 2005) For Standard Security oConn.Open "ODBC;Driver={SQL Native Client};" &For Trusted Connection Security Using the MDAC ODBC Driver For Standard Security For Trusted Connection Security
To connect to SQL Server running on a remote computer (via an IP address) oConn.Open "Driver={SQL Server};" & _ Where:
For more information, see: SQLDriverConnect (ODBC) To view Microsoft KB articles related to ODBC Driver for SQL Server, click here If using the Sybase System 12 (or 12.5) Enterprise Open Client ODBC Driver oConn.Open "Driver={SYBASE ASE ODBC Driver};" & _ If using the Sybase System 11 ODBC Driver oConn.Open "Driver={SYBASE SYSTEM 11};" & _ If using the Intersolv 3.10 Sybase ODBC Driver oConn.Open "Driver={INTERSOLV 3.10 32-BIT Sybase};" & _ For more information, see: Sybase System 10 ODBC Driver Reference Guide To view Microsoft KB articles related to ODBC Driver for Sybase, click here oConn.Open "ODBC; Driver=Sybase SQL Anywhere 5.0;" & _ Note: Including the DSN tag with a null string is absolutely critical or else you get the dreaded -7778 error. For more information, see: Sybase SQL Anywhere User Guide oConn.Open "Provider=Teradata;" & _ For more information, see Teradata ODBC Driver oConn.Open _ Then specify the filename in the SQL statement: oRs.Open "Select * From customer.csv", _ Note: If you are using a Tab delimited file, then make sure you create a schema.ini file, and include the "Format=TabDelimited" option. For more information, see: Text File Driver Programming Considerations To view Microsoft KB articles related to Microsoft Text Driver, click here With a database container oConn.Open "Driver={Microsoft Visual FoxPro Driver};" & _ Without a database container (Free Table Directory) oConn.Open "Driver={Microsoft Visual FoxPro Driver};" & _ For more information, see: Visual FoxPro ODBC Driver and Q165492 To view Microsoft KB articles related to ODBC Driver for Visual FoxPro, click here
|
|
|
|
|
|
|
|
|
|
|
|
|
No comments:
Post a Comment
Please fill free your comment