数据库连接串大全
第一部分:DataBase servers
一、SQL Server
This is a compiled connection strings reference list on how to connect to SQL Server. | |||
Looking for SQL Server 2005 connection strings? They are here » | |||
ODBC | |||
| |||
Standard Security | |||
|
| ||
| |||
| COPY TO CLIPBOARD | ||
Trusted connection | |||
|
| ||
| |||
| COPY TO CLIPBOARD | ||
Prompt for username and password | |||
This one is a bit tricky. First you need to set the connection object's Prompt property to adPromptAlways. Then use the connection string to connect to the database. |
| ||
| |||
| COPY TO CLIPBOARD | ||
OLE DB, OleDbConnection (.NET) | |||
| |||
Standard Security | |||
|
| ||
| |||
| COPY TO CLIPBOARD | ||
Trusted connection | |||
|
| ||
| |||
| COPY TO CLIPBOARD | ||
Prompt for username and password | |||
This one is a bit tricky. First set the connection object's Provider property to "sqloledb". Thereafter set the connection object's Prompt property to adPromptAlways. Then use the connection string to connect to the database. |
| ||
| |||
| COPY TO CLIPBOARD | ||
Connect via an IP address | |||
|
| ||
| |||
| COPY TO CLIPBOARD | ||
SqlConnection (.NET) | |||
| |||
Standard Security | |||
|
| ||
| |||
| COPY TO CLIPBOARD | ||
Standard Security alternative syntax | |||
This connection string produce the same result as the previous one. The reason to include it is to point out that some connection string keywords have many equivalents. |
| ||
| |||
| COPY TO CLIPBOARD | ||
Trusted Connection | |||
|
| ||
| |||
| COPY TO CLIPBOARD | ||
Trusted Connection alternative syntax | |||
This connection string produce the same result as the previous one. The reason to include it is to point out that some connection string keywords have many equivalents. |
| ||
| |||
| COPY TO CLIPBOARD | ||
Trusted Connection from a CE device | |||
Often a Windows CE device is not authenticated and logged in to a domain. To use SSPI or trusted connection / authentication from a CE device, use this connection string. |
| ||
| |||
| COPY TO CLIPBOARD | ||
Connect via an IP address | |||
|
| ||
| |||
| COPY TO CLIPBOARD | ||
Specifying packet size | |||
|
| ||
| |||
| COPY TO CLIPBOARD | ||
Data Shape | |||
| |||
MS Data Shape | |||
|
| ||
|
二、Sybase
This is a compiled connection strings reference list on how to connect to Sybase. | ||||
| ||||
ODBC | ||||
| ||||
Adaptive Server Enterprise 15.0 | ||||
|
| |||
| ||||
| COPY TO CLIPBOARD | |||
Standard Sybase System 12 Enterprise Open Client | ||||
|
| |||
| ||||
| COPY TO CLIPBOARD | |||
Standard Sybase System 12.5 Enterprise Open Client | ||||
|
| |||
| ||||
| COPY TO CLIPBOARD | |||
TDS based ODBC driver (from Sybase OCS 12.5) | ||||
|
| |||
| ||||
| COPY TO CLIPBOARD | |||
Standard Sybase System 11 | ||||
|
| |||
| ||||
| COPY TO CLIPBOARD | |||
Intersolv 3.60 | ||||
|
| |||
| ||||
| COPY TO CLIPBOARD | |||
Intersolv 3.10 | ||||
|
| |||
| ||||
| COPY TO CLIPBOARD | |||
Sybase SQL Anywhere (former Watcom SQL ODBC driver) | ||||
|
| |||
| ||||
| COPY TO CLIPBOARD | |||
OLE DB | ||||
| ||||
Adaptive Server Anywhere (ASA) | ||||
|
| |||
| ||||
| COPY TO CLIPBOARD | |||
Adaptive Server Anywhere (ASA) | ||||
|
| |||
| ||||
| COPY TO CLIPBOARD | |||
Adaptive Server Enterprise (ASE) with Data Source .IDS file | ||||
|
| |||
| ||||
| COPY TO CLIPBOARD | |||
Adaptive Server Enterprise (ASE) alternative 1 | ||||
|
| |||
| ||||
| COPY TO CLIPBOARD | |||
Adaptive Server Enterprise (ASE) alternative 2 | ||||
|
| |||
| ||||
| COPY TO CLIPBOARD | |||
Adaptive Server Enterprise (ASE) 12.5 | ||||
|
| |||
| ||||
| COPY TO CLIPBOARD | |||
Adaptive Server Enterprise (ASE) 15.0 | ||||
|
| |||
| ||||
| COPY TO CLIPBOARD | |||
Adaptive Server Enterprise (ASE) 15.0 alternative | ||||
This one is included because of reported problems with using the "Catalog" key which was solved by using the 12.5 syntax key "Initial Catalog" instead. |
| |||
| ||||
| COPY TO CLIPBOARD | |||
AseConnection (.NET) | ||||
| ||||
Standard | ||||
|
| |||
| ||||
| COPY TO CLIPBOARD | |||
Using the sql.ini file | ||||
If the server isn't aliased, you have to use the ip address and port number in the connection string, not ideal as these may change occassionally. Installing sybase on a machine, you will have a "sql.ini" file that maps an alias name to an ip address and a port. That file can be rolled out to all users, and the sql.ini updated when necessary. Use the following connection string to force the AseConnection object to use the interface file. |
| |||
|
三、Firebird
This is a compiled connection strings reference list on how to connect to Firebird. | ||
| ||
ODBC - IBPhoenix Open Source | ||
| ||
Standard | ||
|
| |
| ||
| COPY TO CLIPBOARD | |
.NET - Firebird .Net Data Provider | ||
| ||
Standard | ||
|
| |
|
四、SQL Server 2005
SQL Server 2005 |
| |||
This is a compiled connection strings reference list on how to connect to SQL Server 2005. | ||||
Looking for SQL Server 2005 CE connection strings? They are here » | ||||
SQL Native Client ODBC Driver | ||||
| ||||
Standard security | ||||
|
| |||
| ||||
| COPY TO CLIPBOARD | |||
Trusted Connection | ||||
|
| |||
| ||||
| COPY TO CLIPBOARD | |||
Prompt for username and password | ||||
This one is a bit tricky. First you need to set the connection object's Prompt property to adPromptAlways. Then use the connection string to connect to the database. |
| |||
| ||||
| COPY TO CLIPBOARD | |||
Enabling MARS (multiple active result sets) | ||||
|
| |||
| ||||
| COPY TO CLIPBOARD | |||
Encrypt data sent over network | ||||
|
| |||
| ||||
| COPY TO CLIPBOARD | |||
Attach a database file on connect to a local SQL Server Express instance | ||||
|
| |||
| ||||
| COPY TO CLIPBOARD | |||
Attach a database file, located in the data directory, on connect to a local SQL Server Express instance | ||||
|
| |||
| ||||
| COPY TO CLIPBOARD | |||
Database mirroring | ||||
If you connect with ADO.NET or the SQL Native Client to a database that is being mirrored, your application can take advantage of the drivers ability to automatically redirect connections when a database mirroring failover occurs. You must specify the initial principal server and database in the connection string and the failover partner server. |
| |||
| ||||
| COPY TO CLIPBOARD | |||
SQL Native Client OLE DB Provider | ||||
| ||||
Standard security | ||||
|
| |||
| ||||
| COPY TO CLIPBOARD | |||
Trusted connection | ||||
|
| |||
| ||||
| COPY TO CLIPBOARD | |||
Prompt for username and password | ||||
This one is a bit tricky. First you need to set the connection object's Prompt property to adPromptAlways. Then use the connection string to connect to the database. |
| |||
| ||||
| COPY TO CLIPBOARD | |||
Enabling MARS (multiple active result sets) | ||||
|
| |||
| ||||
| COPY TO CLIPBOARD | |||
Encrypt data sent over network | ||||
|
| |||
| ||||
| COPY TO CLIPBOARD | |||
Attach a database file on connect to a local SQL Server Express instance | ||||
|
| |||
| ||||
| COPY TO CLIPBOARD | |||
Attach a database file, located in the data directory, on connect to a local SQL Server Express instance | ||||
|
| |||
| ||||
| COPY TO CLIPBOARD | |||
Database mirroring | ||||
If you connect with ADO.NET or the SQL Native Client to a database that is being mirrored, your application can take advantage of the drivers ability to automatically redirect connections when a database mirroring failover occurs. You must specify the initial principal server and database in the connection string and the failover partner server. |
| |||
| ||||
| COPY TO CLIPBOARD | |||
SqlConnection (.NET) | ||||
| ||||
Standard Security | ||||
|
| |||
| ||||
| COPY TO CLIPBOARD | |||
Standard Security alternative syntax | ||||
This connection string produce the same result as the previous one. The reason to include it is to point out that some connection string keywords have many equivalents. |
| |||
| ||||
| COPY TO CLIPBOARD | |||
Trusted Connection | ||||
|
| |||
| ||||
| COPY TO CLIPBOARD | |||
Trusted Connection alternative syntax | ||||
This connection string produce the same result as the previous one. The reason to include it is to point out that some connection string keywords have many equivalents. |
| |||
| ||||
| COPY TO CLIPBOARD | |||
Trusted Connection from a CE device | ||||
Often a Windows CE device is not authenticated and logged in to a domain. To use SSPI or trusted connection / authentication from a CE device, use this connection string. |
| |||
| ||||
| COPY TO CLIPBOARD | |||
Connect via an IP address | ||||
|
| |||
| ||||
| COPY TO CLIPBOARD | |||
Enabling MARS (multiple active result sets) | ||||
|
| |||
| ||||
| COPY TO CLIPBOARD | |||
Attach a database file on connect to a local SQL Server Express instance | ||||
|
| |||
| ||||
| COPY TO CLIPBOARD | |||
Attach a database file, located in the data directory, on connect to a local SQL Server Express instance | ||||
|
| |||
| ||||
| COPY TO CLIPBOARD | |||
Using an User Instance on a local SQL Server Express instance | ||||
The User Instance functionality creates a new SQL Server instance on the fly during connect. This works only on a local SQL Server 2005 instance and only when connecting using windows authentication over local named pipes. The purpose is to be able to create a full rights SQL Server instance to a user with limited administrative rights on the computer. |
| |||
| ||||
| COPY TO CLIPBOARD | |||
Database mirroring | ||||
If you connect with ADO.NET or the SQL Native Client to a database that is being mirrored, your application can take advantage of the drivers ability to automatically redirect connections when a database mirroring failover occurs. You must specify the initial principal server and database in the connection string and the failover partner server. |
| |||
| ||||
| COPY TO CLIPBOARD | |||
Asynchronous processing | ||||
A connection to SQL Server 2005 that allows for the issuing of async requests through ADO.NET objects. |
| |||
| ||||
| COPY TO CLIPBOARD | |||
SQL Server 2005 specials | ||||
| ||||
Context Connection | ||||
Connecting to "self" from within your CLR stored prodedure/function. The context connection lets you execute Transact-SQL statements in the same context (connection) that your code was invoked in the first place. |
| |||
| ||||
|
|
五、Informix
This is a compiled connection strings reference list on how to connect to Informix. | ||
| ||
ODBC | ||
| ||
Informix 3.30 | ||
|
| |
| ||
| COPY TO CLIPBOARD | |
Informix-CLI 2.5: | ||
|
| |
| ||
| COPY TO CLIPBOARD | |
OLE DB | ||
| ||
IBM Informix OLE DB Provider | ||
|
| |
| ||
| COPY TO CLIPBOARD | |
IBM Informix .NET Provider | ||
| ||
IBM.Data.Informix.IfxConnection | ||
|
| |
|
六、AS/400 (iSeries)
This is a compiled connection strings reference list on how to connect to AS/400 (iSeries). | ||
| ||
IBM .Net Data Provider | ||
| ||
Using the IBM.Data.DB2.iSeries namespace | ||
|
| |
| ||
| COPY TO CLIPBOARD | |
OLE DB, OleDbConnection (.NET) | ||
| ||
IBM Client Access OLE DB provider | ||
|
| |
| ||
| COPY TO CLIPBOARD | |
IBM Client Access OLE DB provider | ||
|
| |
| ||
| COPY TO CLIPBOARD | |
ODBC | ||
| ||
IBM Client Access ODBC driver | ||
|
| |
| ||
| COPY TO CLIPBOARD | |
IBM iSeries Access ODBC driver | ||
This driver is newer than the one above. |
| |
|
七、SQL Server 2005 Compact Edition
This is a compiled connection strings reference list on how to connect to SQL Server 2005 Compact Edition. | ||
Looking for SQL Server connection strings? They are here » | ||
OLE DB, OleDbConnection (.NET) | ||
| ||
Standard | ||
|
| |
| ||
| COPY TO CLIPBOARD | |
How to specify the location of the SDF file | ||
Often times the .SDF database is not running in the current directory so it becomes necessary to programatically set the path to the SDF file. This is an example (.net C#) on how to do this when the SDF file is located in the same directory as the executing application. |
| |
| ||
| COPY TO CLIPBOARD | |
Specifying the maximum database size | ||
The maximum size of the database is by default 128 MB. Override this by using the following connection string. |
| |
| ||
| COPY TO CLIPBOARD | |
Specifying the maximum buffer size | ||
The largest amount of memory that can be in use before the server starts flushing changes to disk is by default 640 kB. Override this by using the following connection string. |
| |
| ||
| COPY TO CLIPBOARD | |
Encryption enabled | ||
Use this connection string to enable encryption on the database. |
| |
| ||
| COPY TO CLIPBOARD | |
Specifying the maximum temp file size | ||
The maximum size of the temporary database file is by default 128 MB. Override this by using the following connection string. |
| |
| ||
| COPY TO CLIPBOARD | |
Specifying location of temp file | ||
Set the directory for the temp file location using this connection string. |
| |
| ||
| COPY TO CLIPBOARD | |
Supplying the database password | ||
Use this connection string to provide the database password when opening the connection. |
| |
| ||
| COPY TO CLIPBOARD | |
SqlCeConnection (.NET) | ||
| ||
Standard | ||
|
| |
| ||
| COPY TO CLIPBOARD | |
How to specify the location of the SDF file | ||
Often times the .SDF database is not running in the current directory so it becomes necessary to programatically set the path to the SDF file. This is an example (.net C#) on how to do this when the SDF file is located in the same directory as the executing application. |
| |
| ||
| COPY TO CLIPBOARD | |
Standard | ||
|
| |
| ||
| COPY TO CLIPBOARD | |
Specifying the maximum database size | ||
The maximum size of the database is by default 128 MB. Override this by using the following connection string. |
| |
| ||
| COPY TO CLIPBOARD | |
Specifying the maximum buffer size | ||
The largest amount of memory that can be in use before the server starts flushing changes to disk is by default 640 kB. Override this by using the following connection string. |
| |
| ||
| COPY TO CLIPBOARD | |
Encryption enabled | ||
Use this connection string to enable encryption on the database. |
| |
| ||
| COPY TO CLIPBOARD | |
Exclusive access | ||
Use this one to disallow other processes from opening or modifying the database while you have it open. |
| |
| ||
| COPY TO CLIPBOARD | |
Read only access | ||
Use this one to open a read-only copy of the database. |
| |
| ||
| COPY TO CLIPBOARD | |
Exclusive but shared for reading | ||
Use this one to allow other processes to read, but not modify, the database while you have it open. |
| |
| ||
| COPY TO CLIPBOARD | |
Specifying the maximum temp file size | ||
The maximum size of the temporary database file is by default 128 MB. Override this by using the following connection string. |
| |
|
八、Ingres
This is a compiled connection strings reference list on how to connect to Ingres. | ||
| ||
ODBC | ||
| ||
DSN-less | ||
|
| |
| ||
| COPY TO CLIPBOARD |
九、Pervasive
This is a compiled connection strings reference list on how to connect to Pervasive. | ||
| ||
ODBC | ||
| ||
Standard | ||
|
| |
| ||
| COPY TO CLIPBOARD | |
OLE DB | ||
| ||
Standard | ||
|
| |
|
十、Oracle
This is a compiled connection strings reference list on how to connect to Oracle. | ||||
| ||||
ODBC | ||||
| ||||
New version | ||||
|
| |||
| ||||
| COPY TO CLIPBOARD | |||
Old version | ||||
|
| |||
| ||||
| COPY TO CLIPBOARD | |||
OLE DB, OleDbConnection (.NET) | ||||
| ||||
Standard security | ||||
This connection string uses a provider from Microsoft. |
| |||
| ||||
| COPY TO CLIPBOARD | |||
Trusted connection | ||||
|
| |||
| ||||
| COPY TO CLIPBOARD | |||
Standard Security | ||||
This connection string uses a provider from Oracle. |
| |||
| ||||
| COPY TO CLIPBOARD | |||
Trusted Connection | ||||
|
| |||
| ||||
| COPY TO CLIPBOARD | |||
OracleConnection, Oracle Data Provider, ODP.NET | ||||
| ||||
Standard | ||||
|
| |||
| ||||
| COPY TO CLIPBOARD | |||
Specifying username and password | ||||
|
| |||
| ||||
| COPY TO CLIPBOARD | |||
Omiting tnsnames.ora | ||||
This is another type of Oracle connection string that doesn't rely on you to have a DSN for the connection. You create a connection string based on the format used in the tnsnames.ora file without the need to actually have one of these files on the client pc. |
| |||
| ||||
| COPY TO CLIPBOARD | |||
Using Connection Pooling | ||||
The connection pooling service will create a new pool if it can't find any existing pool that exactly match the new connections connection string properties. If there is a matching pool a connection will be recycled from that pool. |
| |||
| ||||
| COPY TO CLIPBOARD | |||
Windows Authentication | ||||
|
| |||
| ||||
| COPY TO CLIPBOARD | |||
Privileged Connection | ||||
With SYSDBA privileges |
| |||
| ||||
| COPY TO CLIPBOARD | |||
Privileged Connection | ||||
With SYSOPER privileges |
| |||
| ||||
| COPY TO CLIPBOARD | |||
Utilizing the Password Expiration functionality | ||||
First open a connection with a connection string. When the connection is opened, an error is raised because the password have expired. Catch the error and execute the OpenWithNewPassword command supplying the new password. |
| |||
| ||||
| COPY TO CLIPBOARD | |||
Proxy Authentication | ||||
|
| |||
| ||||
| COPY TO CLIPBOARD | |||
Core Labs OraDirect (.NET) | ||||
| ||||
Standard | ||||
|
| |||
| ||||
| COPY TO CLIPBOARD | |||
Data Shape | ||||
| ||||
MS Data Shape | ||||
|
| |||
|
十一、 Mimer SQL
This is a compiled connection strings reference list on how to connect to Mimer SQL. | ||
| ||
ODBC | ||
| ||
Standard Security | ||
|
| |
| ||
| COPY TO CLIPBOARD | |
Prompt for username and password | ||
|
| |
|
十二、SQLBase
This is a compiled connection strings reference list on how to connect to SQLBase. | ||
| ||
OLE DB | ||
| ||
Standard | ||
|
| |
| ||
| COPY TO CLIPBOARD | |
SQLBase .NET Data Provider | ||
| ||
Standard SQLBaseConnection | ||
|
| |
|
十三、MySQL
This is a compiled connection strings reference list on how to connect to MySQL. | |||
| |||
MyODBC | |||
| |||
MyODBC 2.50 Local database | |||
|
| ||
| |||
| COPY TO CLIPBOARD | ||
MyODBC 2.50 Remote database | |||
|
| ||
| |||
| COPY TO CLIPBOARD | ||
MyODBC 3.51 Local database | |||
|
| ||
| |||
| COPY TO CLIPBOARD | ||
MyODBC 3.51 Remote database | |||
|
| ||
| |||
| COPY TO CLIPBOARD | ||
OLE DB, OleDbConnection (.NET) | |||
| |||
Standard | |||
|
| ||
| |||
| COPY TO CLIPBOARD | ||
Connector/Net 1.0 (.NET) | |||
| |||
Standard | |||
|
| ||
| |||
| COPY TO CLIPBOARD | ||
Specifying port | |||
|
| ||
| |||
| COPY TO CLIPBOARD | ||
Named pipes | |||
|
| ||
| |||
| COPY TO CLIPBOARD | ||
MySqlConnection (.NET) | |||
| |||
eInfoDesigns.dbProvider | |||
|
| ||
| |||
| COPY TO CLIPBOARD | ||
SevenObjects MySqlClient (.NET) | |||
| |||
Standard | |||
|
| ||
| |||
| COPY TO CLIPBOARD | ||
Core Labs MySQLDirect (.NET) | |||
| |||
Standard | |||
|
| ||
| |||
| COPY TO CLIPBOARD | ||
MySQLDriverCS (.NET) | |||
| |||
Standard | |||
|
| ||
|
十四、Lightbase
This is a compiled connection strings reference list on how to connect to Lightbase. | ||
| ||
Standard | ||
| ||
Standard | ||
|
| |
|
十五、Progress
This is a compiled connection strings reference list on how to connect to Progress. | ||
| ||
ODBC | ||
| ||
Standard | ||
|
| |
|
十六、Interbase
This is a compiled connection strings reference list on how to connect to Interbase. | |||
| |||
ODBC, Easysoft | |||
| |||
Local computer | |||
|
| ||
| |||
| COPY TO CLIPBOARD | ||
Remote Computer | |||
|
| ||
| |||
| COPY TO CLIPBOARD | ||
ODBC, Intersolv | |||
| |||
Local computer | |||
|
| ||
| |||
| COPY TO CLIPBOARD | ||
Remote Computer | |||
|
| ||
| |||
| COPY TO CLIPBOARD | ||
OLE DB, SIBPROvider | |||
| |||
Standard | |||
|
| ||
| |||
| COPY TO CLIPBOARD | ||
Version 2.x | |||
|
| ||
| |||
| COPY TO CLIPBOARD | ||
Specifying character set | |||
|
| ||
| |||
| COPY TO CLIPBOARD | ||
Specifying role | |||
|
| ||
| |||
| COPY TO CLIPBOARD |
十七、Postgre SQL
This is a compiled connection strings reference list on how to connect to Postgre SQL. | |||
| |||
Core Labs PostgreSQLDirect (.NET) | |||
| |||
Standard | |||
|
| ||
| |||
| COPY TO CLIPBOARD | ||
ODBC - PostgreSQL driver | |||
| |||
Standard | |||
|
| ||
| |||
| COPY TO CLIPBOARD | ||
ANSI | |||
|
| ||
| |||
| COPY TO CLIPBOARD | ||
Unicode | |||
|
| ||
| |||
| COPY TO CLIPBOARD | ||
SSL | |||
Secure sockets layer for this driver only works from version 8.0 and above. |
| ||
| |||
| COPY TO CLIPBOARD | ||
Npgsql by pgFoundry (.NET) | |||
| |||
SSL activated | |||
|
| ||
| |||
| COPY TO CLIPBOARD | ||
Without SSL | |||
|
| ||
| |||
| COPY TO CLIPBOARD | ||
OLE DB - PgOleDb | |||
| |||
Standard | |||
PgOleDb requires a PQLib of version 7.4 or up and it also requires a backend of version 7.4 or up. Timestamps are only guarenteed to work with backends of version 8.0 and up. |
| ||
| |||
| COPY TO CLIPBOARD |
十八、Caché
This is a compiled connection strings reference list on how to connect to Caché. | ||
| ||
ODBC | ||
| ||
Standard | ||
|
| |
| ||
| COPY TO CLIPBOARD | |
Specifying port | ||
|
| |
| ||
| COPY TO CLIPBOARD | |
Specifying protocol | ||
|
| |
| ||
| COPY TO CLIPBOARD |
十九、IBM DB2
This is a compiled connection strings reference list on how to connect to IBM DB2. | ||
| ||
OLE DB, OleDbConnection (.NET) from Microsoft | ||
| ||
TCP/IP | ||
|
| |
| ||
| COPY TO CLIPBOARD | |
APPC | ||
|
| |
| ||
| COPY TO CLIPBOARD | |
IBM's OLE DB Provider (shipped with IBM DB2 UDB v7 or above) | ||
| ||
TCP/IP | ||
|
| |
| ||
| COPY TO CLIPBOARD | |
ODBC | ||
| ||
Standard | ||
|
| |
| ||
| COPY TO CLIPBOARD |
二十、Paradox
This is a compiled connection strings reference list on how to connect to Paradox. | |||
| |||
ODBC | |||
| |||
5.X | |||
|
| ||
| |||
| COPY TO CLIPBOARD | ||
7.X | |||
|
| ||
| |||
| COPY TO CLIPBOARD | ||
Intersolv 3.11 ODBC Driver | |||
| |||
7.X | |||
DataDirect provides this Paradox 7.x table format driver with read-write capability. Note that Paradox tables remain frozen at table format 7.x, That means that software mentioning Paradox 8, 9, 10 tables are really always referencing format 7.x. |
| ||
| |||
| COPY TO CLIPBOARD | ||
OleDbConnection (.NET) | |||
| |||
Standard | |||
|
| ||
| |||
|
|
第二部分:Data files
二十一、Excel 2007
This is a compiled connection strings reference list on how to connect to Excel 2007. | |||
| |||
ACE OLEDB 12.0 | |||
| |||
Standard | |||
|
| ||
| |||
| COPY TO CLIPBOARD |
二十二、Access 2007
This is a compiled connection strings reference list on how to connect to Access 2007. | ||
| ||
ACE OLEDB 12.0 | ||
| ||
Standard security | ||
|
| |
| ||
| COPY TO CLIPBOARD | |
With database password | ||
This is the connection string to use when you have an Access 2007 database protected with a password using the "Set Database Password" function in Access. |
| |
| ||
| COPY TO CLIPBOARD |
二十三、DBF / FoxPro
This is a compiled connection strings reference list on how to connect to DBF / FoxPro. | ||
For your foxpro 2.x DBF you do not need to use dBase or Jet driver, check out the "Visual FoxPro / FoxPro 2.x" section instead and use the VFP driver. Visual FoxPro ODBC and OLEDB drivers work for all Foxpro tables including the oldest foxbase tables and dBaseII, dBaseIII, Clipper files as well. | ||
ODBC | ||
| ||
Standard | ||
|
| |
| ||
| COPY TO CLIPBOARD | |
Remote drives | ||
|
| |
| ||
| COPY TO CLIPBOARD | |
OLE DB, OleDbConnection (.NET) | ||
| ||
Standard | ||
|
| |
| ||
| COPY TO CLIPBOARD |
二十四、Excel
This is a compiled connection strings reference list on how to connect to Excel. | |||||||
| |||||||
ODBC | |||||||
| |||||||
Standard | |||||||
|
| ||||||
| |||||||
| COPY TO CLIPBOARD | ||||||
OLE DB | |||||||
| |||||||
Standard | |||||||
|
| ||||||
| |||||||
|
|
二十五、Access
This is a compiled connection strings reference list on how to connect to Access. | ||
| ||
ODBC | ||
| ||
Standard Security | ||
|
| |
| ||
| COPY TO CLIPBOARD | |
Workgroup | ||
|
| |
| ||
| COPY TO CLIPBOARD | |
Exclusive | ||
|
| |
| ||
| COPY TO CLIPBOARD | |
Enable admin statements | ||
To enable certain programatically admin functions such as CREATE USER, CREATE GROUP, ADD USER, GRANT, REVOKE and DEFAULTS (when making CREATE TABLE statements) use this connection string. |
| |
| ||
| COPY TO CLIPBOARD | |
OLE DB, OleDbConnection (.NET) | ||
| ||
Standard security | ||
|
| |
| ||
| COPY TO CLIPBOARD | |
With database password | ||
This is the connection string to use when you have an access database protected with a password using the Set Database Password function in Access. |
| |
| ||
| COPY TO CLIPBOARD | |
Workgroup (system database) | ||
|
| |
| ||
| COPY TO CLIPBOARD | |
Workgroup (system database) specifying username and password | ||
|
| |
| ||
| COPY TO CLIPBOARD |
二十六、SQLite
This is a compiled connection strings reference list on how to connect to SQLite. | ||
| ||
Finisar.SQLite Data Provider | ||
| ||
Standard | ||
|
| |
| ||
| COPY TO CLIPBOARD | |
Create a new database | ||
|
| |
| ||
| COPY TO CLIPBOARD | |
Using compression | ||
|
| |
| ||
| COPY TO CLIPBOARD | |
Specifying Cache Size | ||
The Cache Size value represents the amount of data pages that are held in memory. Try increase this value for speed improvements but don't forget to keep track of the applications memory usage. |
| |
| ||
| COPY TO CLIPBOARD | |
ODBC | ||
| ||
Standard | ||
|
| |
| ||
| COPY TO CLIPBOARD |
二十七、Textfile
This is a compiled connection strings reference list on how to connect to Textfile. | ||||
| ||||
ODBC | ||||
| ||||
Standard | ||||
|
| |||
| ||||
| COPY TO CLIPBOARD | |||
OLE DB | ||||
| ||||
Delimited columns | ||||
|
| |||
| ||||
| COPY TO CLIPBOARD | |||
Fixed length columns | ||||
|
| |||
| ||||
| COPY TO CLIPBOARD | |||
Schema.ini | ||||
| ||||
_ | ||||
The schema information file tells the driver about the format of the text files. The file is always located in the same folder as the text files and must be named schema.ini. |
| |||
| ||||
| COPY TO CLIPBOARD |
二十八、Visual FoxPro / FoxPro 2.x
This is a compiled connection strings reference list on how to connect to Visual FoxPro / FoxPro 2.x. | ||||
For version 8 and up its recommended to use the OLEDB driver as the ODBC driver does not recognize autoincrement fields and does not support stored procedures. The last ODBC update was for VFP 6 (version 6.0.8167) which is also compatible with VFP 7. | ||||
OLE DB, OleDbConnection (.NET) | ||||
| ||||
Database container (.DBC) | ||||
|
| |||
| ||||
| COPY TO CLIPBOARD | |||
Free table directory | ||||
|
| |||
| ||||
| COPY TO CLIPBOARD | |||
Force the provider to use an ODBC DSN | ||||
|
| |||
| ||||
| COPY TO CLIPBOARD | |||
ODBC | ||||
| ||||
Database container (.DBC) | ||||
|
| |||
| ||||
| COPY TO CLIPBOARD | |||
Free Table directory | ||||
|
| |||
| ||||
|
|
二十九、Filemaker
This is a compiled connection strings reference list on how to connect to Filemaker. | ||
| ||
ODBC | ||
| ||
Standard | ||
FileMaker's Remote Data Access Companion (RDAC) plug-in needs to be enabled, even if FileMaker is installed on the same machine as the application / website. |
| |
| ||
| COPY TO CLIPBOARD |
第三部分:Other
三十、MS Project
This is a compiled connection strings reference list on how to connect to MS Project. | ||
| ||
Microsoft Project 2003 OLE DB | ||
| ||
| ||
|
| |
| ||
| COPY TO CLIPBOARD | |
Microsoft Project 2002 OLE DB | ||
| ||
| ||
|
| |
| ||
| COPY TO CLIPBOARD | |
Microsoft Project 2000 OLE DB | ||
| ||
| ||
|
| |
| ||
| COPY TO CLIPBOARD |
三十一、Lotus Notes
This is a compiled connection strings reference list on how to connect to Lotus Notes. | ||
| ||
ODBC | ||
| ||
Lotus Notes ODBC Driver | ||
|
| |
| ||
| COPY TO CLIPBOARD |
三十二、Index Server
This is a compiled connection strings reference list on how to connect to Index Server. | |||
| |||
OLE DB Provider for Index Server | |||
| |||
Standard | |||
|
| ||
| |||
| COPY TO CLIPBOARD | ||
Specifying the user locale | |||
Specifies a unique 32-bit number (for example, 1033) that specifies preferences related to the user's language. These preferences indicate how dates and times are formatted, items are sorted alphabetically, strings are compared, and so on. |
| ||
| |||
| COPY TO CLIPBOARD |
三十三、Active Directory
This is a compiled connection strings reference list on how to connect to Active Directory. | ||
| ||
OLE DB, OleDbConnection (.NET) | ||
| ||
Active Directory OLE DB provider | ||
|
| |
| ||
| COPY TO CLIPBOARD | |
Specifying user name and password | ||
|
| |
| ||
| COPY TO CLIPBOARD |
三十五、DSN
This is a compiled connection strings reference list on how to connect to DSN. | ||
| ||
ODBC | ||
| ||
DSN | ||
|
| |
| ||
| COPY TO CLIPBOARD | |
File DSN | ||
|
| |
| ||
| COPY TO CLIPBOARD |
三十六、Exchange
Exchange |
| |||
This is a compiled connection strings reference list on how to connect to Exchange. | ||||
| ||||
OLE DB | ||||
| ||||
Exchange OLE DB provider | ||||
|
| |||
| ||||
| COPY TO CLIPBOARD | |||
ExDAV | ||||
| ||||
ADO.NET | ||||
|
| |||
| ||||
| COPY TO CLIPBOARD |
三十七、UDL
|
| |
This is a compiled connection strings reference list on how to connect to UDL. | ||
| ||
UDL | ||
| ||
UDL | ||
|
| |
| ||
| COPY TO CLIPBOARD |