VB.Net-Informations.com
   Home      .Net Framework      VB.NET      C#                                                                      About


  ADO.NET ConnectionString

Connection String is a normal String representation which contains Database connection information to establish the connection between Datbase and the Application. The Connection String includes parameters such as the name of the driver, Server name and Database name , as well as security information such as user name and password. Data providers use a connection string containing a collection of parameters to establish the connection with the database.

The .NET Framework provides mainly three data providers: Microsoft SQL Server, OLEDB and ODBC. Here you can see how to make connection string to these ADO.NET Data Providers.

Microsoft SQL Server Connection String

connetionString ="Data Source = ServerName; Initial Catalog = Databasename; User ID = UserName; Password=Password"

OLEDB Data Provider Connection String

connetionString = "Provider = Microsoft.Jet.OLEDB.4.0; Data Source = yourdatabasename.mdb;"

ODBC Connection String

connetionString = "Driver = {Microsoft Access Driver (*.mdb)}; DBQ = yourdatabasename.mdb;"

Note : You have to provide the necessary informations to the Connection String attributes.

In the following section you can see how to these ADO.NET Data Providers establish connection to the Databse in detail.

SQL Server Connection

OLEDB Connection

ODBC Connection

        
        
C# Tutorial




ADO.NET Related Contents
*     ADO.NET Architecture Help and Tutorial
*     Advantages of ADO.Net over ADO
*     Connected and Disconnected Data Access Architecture
*     ADO.NET Data Providers


   Home      VB.NET      C#
VB.Net Related Topics
*     Microsoft .Net Framework Tutorials
*     VB.NET Language Basics Tutorials
*     VB.NET Program Flow Control Tutorials
*     VB.NET Collections Tutorials
*     VB.NET String Tutorials
*     VB.NET Files Tutorials
*     VB.NET Excel 2007 Tutorials
*     VB.NET Crystal Reports Tutorials
*     VB.NET Communications Tutorial
*     VB.NET ADO.NET Tutorial
*     ADO.NET Data Providers help and Tutorial
*     VB.NET ADO.NET Dataset Tutorial
*     ADO.NET DataAdapter and Dataset
*     VB.NET ADO.NET DataView Tutorial
*     VB.NET Remoting Tutorial
*     VB.NET XML Tutorial
*     VB.NET DataGridView Tutorial
   Home      VB.NET      C#
More Source Code :   
Mail to :  feedback@net-informations.com
  |  Home   |  VB.NET   |  C#   |  SiteMap   |  Terms of Use   |  About   |
net-informations.com (C) 2010
All Rights Reserved. All other trademarks are property of their respective owners.