Home / ASP.NET Wiki / Data Access / ADO.NET / ASP.NET Database Connection

ASP.NET Database Connection

 Rate It (1)

 

 

Introduction :

 

Now we discuss about Asp.net Database Connection Asp.net provide several type of classes to connection from ADO.NET here we discuss some classes ...

To Access the ADO.Net you must import  Namespaces

 

System.Data 

 

System.Data this namespace hold some type of objects if you want to use this classes or method first you must import this Namespace every page in .net

  • DataSet
  • DataTable
  • DataRow
  • DataRelation

 

System.Data.OleDb

 

This namespace it’s general namespace one you import and you can easly use every database like sql.server.mysql,even you can use excel sheet it provide some usefull objects..

  • OleDbConnectin
  • OleDbCommand
  • OleDbDataSet
  • OleDbDataReader
  • OleDbDataAdapter


System.Data.SQLClient

 

This is same OleDb but this  specially for sqlserver and it hold this type of objects

  • SQLConnection
  • SQLCommand
  • SQLDataSet
  • SQLDataReader
  • SQLDataAdapter

 

Revision number 2, Thursday, July 28, 2011 8:50:53 PM by codenickel

Comments

Related Articles

Employee Info Starter Kit - Getting Started

Employee Info Starter Kit is an open source ASP.NET project template that is intended to address different types of real world challenges faced by web application developers when performing common CRUD operations. Using a single database table ‘Employee’,

how to use login control on remote computer (live web site)

step1. drag create use wizard and drop on design window on your web page(default1.aspx). step2. go to website tab and click on asp.net configuration step3. now open websiteadministration tool step4. click on security link step5. click on Use the security Setup

Getting Started with SQL Server Compact 4.0 and ASP.NET 4

While professional developers are waiting for the Visual Studio Tools and Designers for SQL Server Compact 4.0, I will show how impatient developers can include SQL Server Compact with ASP.NET applications, and use it from ASP.NET pages. Previously, you had

Shortcuts

Table of Contents

Top Wiki Contributors

(last 30 days)

  1. abiruban (1)