This page contains sample ADO connection strings for ODBC dsn/dsn-less,
OLE DB Providers, remote Data Services (RDS), Ms Remote, Ms Datashape.
Also included are ado.net connection strings for each. NET Managed
(SQLClient, OLE DB, and ODBC).
These sample connection strings are compiled
By Carl Prothman, a Microsoft Visual Basic MVP
enjoy!
Table of Contents
ODBC DSN Connections DSN
File DSN
ODBC dsn-less connections ODBC Driver for as/400
ODBC Driver for Access
ODBC Driver for DBASE
ODBC Driver for Excel
ODBC Driver for MySQL
ODBC Driver for Oracle
ODBC Driver for Paradox
ODBC Driver for SQL Server
ODBC Driver for Sybase
ODBC Driver for Sybase SQL Anywhere
ODBC Driver for Text
ODBC Driver for Teradata
ODBC Driver for Visual FoxPro
OLE DB Data Link connections Data link File (UDL)
OLE DB Data Provider connections OLE DB Provider for as/400
OLE DB Provider for Active Directory Service
OLE DB Provider for DB2
Old DB Provider for Internet Publishing
OLE DB Provider for Index Server
OLE DB Provider for Microsoft Jet
OLE DB Provider for ODBC Databases
OLE DB Provider for Oracle (from Microsoft)
OLE DB Provider for Oracle (from Oracle)
OLE DB Provider for simple Provider
OLE DB Provider for SQL Server
Remote data Service (RDS) connections RDS Data Control-connect property
RDS Data Control-url Property
ADO URL Connections ADO Recordset
Ms Remote Provider Connections Ms Remote-access (JET)
MS Remote-sql Server
Data Shape Provider connections MS datashape-sql Server
. NET Managed Provider connections SQL Client. NET Managed Provider (System.Data.SqlClient)
OLE DB. NET Managed Provider (System.Data.OleDb)
ODBC. NET Managed Provider (System.Data.ODBC)
ODBC DSN Connections
Using an ODBC DSN (Data Source Name) is a two the step process.
1 must the DSN via the "ODBC Data Source Administrator" program
Found in your computer's control Panel (or administrative Tools menu in Windows 2000).
Make sure to create a SYSTEM DSN, not a USER DSN, when using ASP.
Note:you can also create the DSN via VB code.
2) Then Use the following connection String-with your own DSN name of course. ;-)
For more information, see:about ODBC data sources and
How to use File DSNs and dsn-less connections
Note:the problem with DSN was that Users can (and would) modify them (or delete by mistake),
Then your program won ' t work ... So it's better to use a dsn-less or OLE DB Provider
Connection string with a Trusted connection if possible!
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.