Find jobs | Jobseekers
Employer login
About us Sitemap of www.CareerRide.com Sitemap FAQ related with www.CareerRide.com FAQ Click here to Contact us Contact
       
Submit Resume Free ! | Access Resume Free !
Home Career Services Resume Services Interview questions Articles Books
Content
NET framework
NET assembly
NET code security
NET access modifiers
NET architecture
NET base class library
NET CLR
NET constants,enum,arrays
NET data types
NET menu
NET garbage collection
NET debug and trace
NET properties
NET form
NET assemblies & resources
NET class & structures
NET binding,viewing,filtering
NET configuring & optimizing
NET configuring setup project
NET constructors & destructors
NET control
NET dataset objects
NET debugging tools
NET debug & trace classes
NET delegates & events
NET exception handling
NET globalization-localization
NET interoperability
NET project deployment
NET securing application
NET using XML
NET validating user input
NET windows communication
NET windows presentation
NET windows workflow
 
ASP.NET
C#.NET
VB.NET
AJAX
 
PHP
 
C
C++
Java
Data Structure
Oops
 
Database concepts
SQL Server
Oracle
MySQL
Data warehousing
Service-oriented architecture
SQL Server notification services
SQL Server Reporting Services
Sharepoint
Biztalk interview questions
 
Operating System
Project Management
Linux
Testing
Networking
Software engineering
 
UML
XML
HTML
SOAP
CSS
VBScript
 
CV tips
Cover letter tips
Interview tips
Human resources
Soft skills
Group discussion

.NET dataset objects


.NET dataset objects - Interview questions

<<Previous  Next>>

.NET dataset objects - August 25, 2008 at 18:00 PM by Amit Satpute

What is Dataset object?

Answer
Databases
          |
DataProviders
          |
DataAdapters
          |
DataSets

The DataSet is an in-memory cache of data retrieved from a data source. It consists of a collection of DataTable objects. These DataTables can be related to eachother with the help of DataRelation objects.

DataSet object can not directly interact with Database. A DataAdapter object needs to be created to refer to the connection that is created.    

What are the various objects in Dataset?     

Answer
The DataSet class exists in the System.Data namespace. The Classes contained in the DataSet class are:

DataTable 
DataColumn
DataRow 
Constraint
DataRelation

How to save data from dataset?     

Answer
The modified data needs to be sent back to the database in order to save it. Therefore, to send the modified data to a database, the Update method of a TableAdapter or data adapter needs to be called. The Update method executes either of INSERT, UPDATE, or DELETE depending on the RowState in the table.

In Visual Studio a TableAdapterManager component is used for saving the proper order based on the foreign-key constraints of the database.

Although the procedure to save the data may change depending upon the applications, the following steps throw light on the generalized concept:

The code sends updates to the database should be written within a try/catch block.

The data row should be located to determine the problem area and the code should then be reattempted.


October 30, 2008 at 18:10 pm by Amit Satpute

Explain the difference between dataset clone and dataset copy?

Dataset.clone() duplicates (only) the structure of a dataset, without duplicating the data.

Dataset.copy() performs a deep copy of the dataset.

Explain the difference between DataSet and DataReader

Datareader fetches one row at a time from the datasource. DataSet fetches all data from the datasource at a time to its memory area.

Datareader is like a forward only recordset. We can traverse through an object in a DataSet to get required data.

DataReader is readonly and can be chosen when the network connection is slow. DataSet is always a bulky object that requires lot of memory space compare to DataReader.


<<Previous  Next>>




 
Today's Hot Jobs
C++  SQL Server
.NET  Java  Oracle
Finance  Marketing
Seekers  Employers
Copyright © 2008 CareerRide.com. All rights reserved.