ODBC DSN Less Connection Strings

ODBC Driver for Access
For Standard Security:





If you are using a Workgroup
(System database):





If want to open up the MDB exclusively





If MDB is located on a Network Share




If MDB is located on a remote machine
- Or use an XML Web Service via SOAP Toolkit or ASP.NET
- Or upgrade to SQL Server and use an IP connection string
- Or use an ADO URL with a remote ASP web page
- Or use a MS Remote or RDS connection string

If you don't know the path to the MDB (using ASP)






This assumes the MDB is in the same directory where the ASP page is running. Also make sure this directory has Write permissions for the user account.

If you don't know the path to the MDB (using VB)






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

ODBC Driver for AS/400(from IBM)





For more information, see: A Fast Path to AS/400 Client/Server

ODBC Driver for dBASE




Then specify the filename in the SQL statement:
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

ODBC Driver for Excel






For more information, see: Microsoft Excel Driver Programming Considerations
To view Microsoft KB articles related to Microsoft Excel Driver,click here

ODBC Driver for Informix
If using INFORMIX 3.30 ODBC Driver










' Or










If using INFORMIX-CLI 2.5 ODBC Driver






For more information, see: Informix Developer Zone, Connection to ODBC Data Source,

ODBC Driver for Interbase (from Easysoft)
For the local machine






For a remote machine







For more information, see: Connecting to InterBase and Easysoft

ODBC Driver for Interbase(from InterSolv)
For the local machine






For a remote machine






For more information, see: Google Search

ODBC Driver for Lotus Notes
For more information, see: Connection keywords

ODBC Driver for MySQL (via MyODBC)
To connect to a local database







To connect to a remote database










For more information, see: Programs Known to Work with MyODBC

ODBC Driver for Oracle (from Microsoft)
For the current Oracle ODBC Driver from Microsoft






For the older Oracle ODBC Driver from Microsoft






For more information, see: Connection String Format and Attributes To view Microsoft KB articles related to Microsoft ODBC for Oracle, click here

ODBC Driver for Oracle (from Oracle)





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

ODBC Driver for Paradox







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


ODBC Driver for SQL Server
For Standard Security







For Trusted Connection security








' Or







To Prompt user for username and password








To connect to SQL Server running on the same computer







To connect to SQL Server running on a remote computer (via an IP address)








Where:
- xxx.xxx.xxx.xxx is an IP address
- 1433 is the default port number for SQL Server.
- "Network=DBMSSOCN" tells ODBC to use TCP/IP rather than Named
Pipes (Q238949 )
For more information, see: SQLDriverConnect (ODBC)
To view Microsoft KB articles related to ODBC Driver for SQL Server, click here

ODBC Driver for Sybase
If using the Sybase System 12 (or 12.5) Enterprise Open Client ODBC Driver





If using the Sybase System 11 ODBC Driver







If using the Intersolv 3.10 Sybase ODBC Driver





For more information, see: Sybase System 10 ODBC Driver Reference Guide To view Microsoft KB articles related to ODBC Driver for Sybase, click here

ODBC Driver for Sybase SQL Anywhere






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

ODBC Driver for Teradata





For more information, see Teradata ODBC Driver

ODBC Driver for Text




Then specify the filename in the SQL statement:


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

ODBC Driver for Visual FoxPro

With a database container




Without a database container
(Free Table Directory)




For more information, see: Visual FoxPro ODBC Driver and Q165492
To view Microsoft KB articles related to ODBC Driver for Visual FoxPro,click here

diambil dari Able Consulting

Read More......
Subscribe to: Posts (Atom)