Net-informations.com
SiteMap  | About    

ASP.NET Connection

The Connection Object is a part of ADO.NET Data Provider and it is a unique session with the Data Source. The Connection Object provides physical connection to the Data Source. Connection object needs the necessary information to recognize the data source and to log on to it properly, this information is provided through a connection string.

asp.net-connection

The Connection Object connect to the specified Data Source and open a connection between the application and the Data Source, depends on the parameter specified in the Connection String . When the connection is established , SQL Commands will execute with the help of the Command Object and retrieve or manipulate data in the Data Source. Once the Database activity is over , Connection should be closed and release the Data Source resources .

The type of the Connection is depend on which Data Source system you are working with. The following are the commonly used Data Providers for ADO.NET applications.

ASP.NET SQL Server Connection

ASP.NET OLEDB Connection

ASP.NET ODBC Connection







net-informations.com (C) 2017    Founded by raps mk
All Rights Reserved. All other trademarks are property of their respective owners.