Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Save to My Library
Look up keyword
Like this
0Activity
0 of .
Results for:
No results containing your search query
P. 1
Connection Strings

Connection Strings

Ratings: (0)|Views: 9 |Likes:
Published by Ravi Gaurav Pandey
Database Connection String, ADO.net, MySQL, Oracle, MS SQL Server, MS Access, Password protected databse connection, Using ADO.net with any database
Database Connection String, ADO.net, MySQL, Oracle, MS SQL Server, MS Access, Password protected databse connection, Using ADO.net with any database

More info:

Published by: Ravi Gaurav Pandey on Apr 08, 2011
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

05/12/2014

pdf

text

original

 
Ravi Gaurav Pandey ravig.pandey@gmail.comConnection Strings in .net
MS Access connection strings
MS Access ODBC connection strings
Standard Security:
 "Driver={MicrosoftAccessDriver(*.mdb)};DBQ=C:\App1\Your_Database_Name.mdb;Uid=Your_Username;Pwd=Your_Password;"
Workgroup:
 "Driver={Microsoft Access Driver (*.mdb)}; Dbq=C:\App1\Your_Database_Name.mdb;SystemDB=C:\App1\Your_Database_Name.mdw;"
Exclusive
"Driver={Microsoft Access Driver (*.mdb)}; DBQ=C:\App1\Your_Database_Name.mdb; Exclusive=1;Uid=Your_Username; Pwd=Your_Password;"
MS Access OLE DB & OleDbConnection (.NETframework) connection strings
 
"Provider=Microsoft.ACE.OLEDB.12.0"
 Open connection to Access database:
 "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=c:\App1\Your_Database_Name.mdb; User Id=admin; Password="
Open connection to Access database using Workgroup (System database):
 "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=c:\App1\Your_Database_Name.mdb; Jet OLEDB:SystemDatabase=c:\App1\Your_System_Database_Name.mdw"
Open connection to password protected Access database:
 "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=c:\App1\Your_Database_Name.mdb; Jet OLEDB:DatabasePassword=Your_Password"
Open connection to Access database located on a network share:
 "Provider=Microsoft.Jet.OLEDB.4.0; DataSource=\\Server_Name\Share_Name\Share_Path\Your_Database_Name.mdb"
Open connection to Access database located on a remote server:
 "Provider=MS Remote; Remote Server=http://Your-Remote-Server-IP; Remote Provider=Microsoft.Jet.OLEDB.4.0;Data Source=c:\App1\Your_Database_Name.mdb"
 
Ravi Gaurav Pandey ravig.pandey@gmail.com
SQL Server connection strings
SQL ODBC connection strings
Standard Security:
< br>"Driver={SQLServer};Server=Your_Server_Name;Database=Your_Database_Name;Uid=Your_Username;Pwd=Your_Password;"
Trusted connection:
< br>"Driver={SQLServer};Server=Your_Server_Name;Database=Your_Database_Name;Trusted_Connection=yes;"
SQL OLE DB connection strings
 
Standard Security:
 "Provider=SQLOLEDB;Data Source=Your_Server_Name;Initial Catalog=Your_Database_Name;UserId=Your_Username;Password=Your_Password;"
Trusted connection:
 "Provider=SQLOLEDB;Data Source=Your_Server_Name;Initial Catalog=Your_Database_Name;IntegratedSecurity=SSPI;"
SQL OleDbConnection .NET strings
 
Standard Security:
 "Provider=SQLOLEDB;Data Source=Your_Server_Name;Initial Catalog=Your_Database_Name;UserId=Your_Username;Password=Your_Password;"
Trusted connection:
 "Provider=SQLOLEDB;Data Source=Your_Server_Name;Initial Catalog=Your_Database_Name;IntegratedSecurity=SSPI;"
SQL SqlConnection .NET strings
 
Standard Security:
 1. "Data Source=Your_Server_Name;Initial Catalog=Your_Database_Name;UserId=Your_Username;Password=Your_Password;" < br>2."Server=Your_Server_Name;Database=Your_Database_Name;UserID=Your_Username;Password=Your_Password;Trusted_Connection=False"
Trusted connection:
 1. "Data Source=Your_Server_Name;Initial Catalog=Your_Database_Name;Integrated Security=SSPI;"2."Server=Your_Server_Name;Database=Your_Database_Name;Trusted_Connection=True;"
 
Ravi Gaurav Pandey ravig.pandey@gmail.com
MySQL connection strings
MySQL ODBC connection strings
Open connection to local MySQL database using MySQL ODBC 3.51 Driver
 "Provider=MSDASQL; DRIVER={MySQL ODBC 3.51Driver}; SERVER= localhost;DATABASE=Your_MySQL_Database; UID= Your_Username; PASSWORD=Your_Password; OPTION=3"
MySQL OLE DB & OleDbConnection (.NET framework)connection strings
 
Open connection to MySQL database:
 "Provider=MySQLProv;Data Source=Your_MySQL_Database;User Id=Your_Username; Password=Your_Password;"

You're Reading a Free Preview

Download
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->