If you use the MySQL database and use the dbgo (ADO) component to connect through MySQL ODBC 3.5.1 or MySQL connector/ODBC 5.0, then your tadoconnection connection string (connectionstring)
1. when accessing the local database:
'Driver = {MySQL ODBC 3.51 driver}; server
C # database connection string set(1) Common connections:1. Use the sqlconnection object:
A. SQL VerificationPublic void sqlconnectionopen (){Sqlconnection conn = new sqlconnection ();Conn. connectionstring = "User ID = sa; Password =; initial catalog = northwind; datasource = localhost; Connect timeout = 20 ";Conn. open ();}
B. Windows Authentication
Public void sqlconnectionopen (){Sqlconnection conn = ne
Http://database.51cto.com/art/201105/263910.htm
First, you have installed the MySQL database driver correctly.ProgramMysql-connector-odbc-5.1.6-win32.msi)
1. Create an empty file mysql.txt on the table and rename it mysql. udl;
2. Double-click the mysql. udl file to open the "Database Connection Properties" dialog box. On the "providers" Page, select "Micrsoft ole db provider for
= myserveraddress; Failover_partner = Mymirrorserveraddress;database = MyDataBase; Trusted_Connection = yes;V.. NET Framework Data Provider for ODBCType:. NET Framework Wrapper Class LibraryUse: System.Data.Odbc.OdbcConnectionVendor: MicrosoftBridge to SQL Native Client 10.0 ODBC DriverThe following statement is just an example of the different ODBC drivers for different vendors.10.0}; Server=myserveraddre
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 Provider(SQLClient, OLEDB, and ODBC ).Odbc dsn ConnectionsUsing an
Oracle XE
Standard connection
Oracle xe (or "Oracle Database 10g express edition") is a simple and free version. The syntax format is as follows:
Driver = (Oracle in xeclient); DBQ = 111.21.31.99: 1521/Xe; uid = myusername; Pwd = mypassword;
ODBC
The connection mode for the new version is as follows:
Driver = {Microsoft
The following are all Oracle database connection strings. The summary is very detailed, but I did not summarize them. I just learned from Oracle. Paste it out. The first is
The following are all Oracle database connection strings. The summary is very detailed, but I did not summarize them. I just learned from Oracle. Paste it out. The first is
The following are all Oracle database
Label:1. Download the ODBC database driver (Mysql-connector-odbc-5.3.4-win32.msi or mysql-connector-odbc-5.3.4-winx64.msi) that installs MySQL:/http dev.mysql.com/downloads/connector/odbc/ 2. Create a new empty text file on the desktop mysql.txt, rename it to Mysql.udl; 3. Double-click the Mysql.udl file to open the
// JDBC-ODBC Bridging ModeClass. forname ("Sun. JDBC. ODBC. jdbcodbcdriver ");Drivermanager. getconnection ("JDBC: ODBC: Test", user, PWD); // test indicates the name of the configured ODBC data source.You can use// SQL2000 connection method use MSSQLServer. jar package JDBC
=yes; Database Mirroring 10.0}; Server = myserveraddress; Failover_partner = Mymirrorserveraddress;database = MyDataBase; Trusted_Connection = yes; V.. NET Framework Data Provider for ODBC type:. NET Framework Wrapper Class Libraryuse: System.Data.Odbc.OdbcConnectionVendor: Microsoft Bridge to SQL Native Client 10.0 ODBC Driver The following statement is just an example of the different
OracleXE standard connection OracleXE (or OracleDatabase10gExpressEdition) is a simple and free version. The following syntax is used: Driver (OracleinXEClient); dbq111.21.31.99: 1521XE; UidmyUsername; PwdmyPassword; the connection mode for new ODBC versions is as follows:
Oracle XE standard connection Oracle XE (or Or
I. NET Framework Data Provider for SQL ServerType:. NET Framework Class LibraryUse: System.Data.SqlClient.SqlConnectionManufacturer: Microsoft
1. Standard secure connection
Copy Code code as follows:
Data Source = myserveraddress;initial Catalog = myDataBase; User Id = MyUserName; Password = mypassword;
Use the server name \ Instance name as the connection to specify the data source for th
MySQL Connector/ODBC 2.50 (MyODBC 2.50) Connection ModeLocal Database ConnectionThe syntax format is as follows:Driver = {mySQL}; Server = localhost; Option = 16834; Database = myDataBase;The following syntax format is used for remote data connection:Driver = {mySQL}; Server = myServerAddress; Option = 131072; Stmt =; Database = myDataBase; User = myUsername; Password = myPassword;Special TCP/IP Port connec
data directory when connecting to an instance of SQL Server Express Database=dbname; Trusted_connection=yes; Database Mirroring 10.0}; Server = myserveraddress; Failover_partner = Mymirrorserveraddress;database = MyDataBase; Trusted_Connection = yes; V.. NET Framework Data Provider for ODBC Type:. NET Framework Wrapper Class LibraryUse: System.Data.Odbc.OdbcConnectionVendor: Microsoft Bridge to SQL Native Client 10.0
And rename it to mysql. udl; 2. Double-click the mysql. udl file to open "database connection attribute"
Http://blog.csdn.net/zyq5945/article/details/5486393 first you correctly installed MYSQL database Driver (mysql-connector-odbc-5.1.6-win32.msi) 1.create an empty file mysql.txt on the table, rename it mysql. udl; 2. Double-click the mysql. udl file, open "Database Co
The connection string contains initialization information that is passed as a parameter to the data source. The connection string is parsed immediately after setting. A syntax error generates a Run-time exception, but you can discover additional errors only if the data source validates the information in the
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.