C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Reviews   Communities   Interview   Jobs   Projects   Training   Your Ad Here    
Silverlight Games | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Polls | Revenue Sharing | Lobby | Gift Shop |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...






Resources » Definitions » General »

Data Access using ADO.NET


Posted Date: 20 Nov 2008    Resource Type: Definitions    Category: General
Author: mahendrakiranMember Level: Gold    
Rating: 1 out of 5Points: 5



Data access using ADO.Net has the following steps:


1)Defining the connection string for the database server.
2)Defining the connection (SqlConnection, OleDbConnection, etc) to the database using the connection string.
3)Defining the command (SqlCommand, OleDbCommand, etc) or command string that contains the query .
4)Defining the data adapter (SqlDataAdapter, OleDbDataAdapter, etc) using the command string and the connection object.
5)Creating a new DataSet object.
6)If the command is SELECT, filling the dataset object with the result of the query through the data adapter
7)Reading the records from the DataTables in the datasets using the DataRow and DataColumn objects.
8)If the command is UPDATE, INSERT or DELETE, then updating the dataset through the data adapter.
9)Accepting to save the changes in the dataset to the database.




Responses


No responses found. Be the first to respond and make money from revenue sharing program.

Feedbacks      
Popular Tags   What are tags ?   Search Tags  
Sign In to add tags.
(No tags found.)

Post Feedback


This is a strictly moderated forum. Only approved messages will appear in the site. Please use 'Spell Check' in Google toolbar before you submit.
You must Sign In to post a response.
Next Resource: Database Connection
Previous Resource: What is Hot Backup?
Return to Discussion Resource Index
Post New Resource
Category: General


Post resources and earn money!
 
Related Resources



dotNet Slackers

About Us    Contact Us    Privacy Policy    Terms Of Use