GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

  GeekInterview.com  >  Interview Questions  >  Microsoft  >  ADO.NET 2.0

 Print  |  
Question:  What is basic difference between Dataset and Typed Dataset. When to use Typed dataset?



April 04, 2007 05:11:51 #1
 Karthik D V   Member Since: Visitor    Total Comments: N/A 

RE: What is basic difference between Dataset and Typed...
 

Typed DataSet is precompiled one

For Example in Normal DataSet this is how we use to get data.

 ds.Tables["Employee"].Rows[0][0]

In typed DataSet usage is strongly bound.

ds.EmployeeTable.Rows[0].EmpIdColumn 

Here every thing is typed, no need to use index/name to identify table or column name.

Typed dataset yields less errors than mornal dataset in all the way.

Typed Dataset is faster than the normal dataset .

The problem of typed dataset is dynamic behaviour
(This is also possible if we build typed dataset on the fly, usingm reflection)

     

 

Back To Question