MySQL Connection String
MySQL ConnectionString using MySQL ODBC Driver
<add name="entaccess" connectionString="Driver={MySQL ODBC 3.51 Driver};SERVER=server_name;
DATABASE=DataBase_Name;Port=3306;USER=uid;PASSWORD=pass;Connect Timeout=0;
OPTION=3;"/>
MySQL ConnectionString using MySQL.Data.dll
<add name="MySQLConnectionString" connectionString="server=server_name; user id=root; password=pwd;
database=databasename; pooling=false;default command timeout=3600;" providerName="MySql.Data.MySqlClient"/>
SQLServer Connection String
SQLServer ConnectionString using sqlserver
authentication mode
<add name="SQLConnectionString" connectionString="server= Data Source= server_name;Initial
Catalog= DataBase_Name;User Id=myUsername;Password=myPassword; " providerName="System.Data.SqlClient"/>
<add name="SQLConnectionString" connectionString="server= Data Source= server_name; Database
= DataBase_Name;User Id=myUsername;Password=myPassword;
" providerName="System.Data.SqlClient"/>
SQLServer ConnectionString using Windows
authentication mode
<add name="SQLConnectionString" connectionString="server= Data Source= server_name;Initial
Catalog= DataBase_Name; Integrated Security=True;" providerName="System.Data.SqlClient"/>
<add name="SQLConnectionString" connectionString="server= Data Source= server_name; Database
= DataBase_Name; Integrated Security=SSPI;" providerName="System.Data.SqlClient"/>
Attach a database file, located in the data directory
<add name="SQLConnectionString" connectionString="
Server=.\SQLExpress;AttachDbFilename=|DataDirectory|dbfile.mdf;
Database=dbname;Trusted_Connection=Yes providerName="System.Data.SqlClient"/>
Oracle Connection String
<add name="ConnectionString" connectionString="Data Source=servername;Persist Security Info=True;User ID= uid;Password=
passowrd;Unicode=True;"/>
<add
name="ConnectionString" connectionString="Data Source=servername;Persist
Security Info=True;User ID= id;Password= pwd;"/>