Solved

how to populate a dataset from a dataadapter?

Posted on 2006-11-06
4
617 Views
Last Modified: 2011-10-03
how to populate a dataset from a dataadapter?
0
Comment
Question by:mathieu_cupryk
  • 2
4 Comments
 
LVL 15

Expert Comment

by:ozymandias
ID: 17884830
DataAadpter.Fill(DataSet);
0
 
LVL 35

Expert Comment

by:YZlat
ID: 17884933
DataSet ds= New DataSet();
SqlDataAdapter da= New SqlDataAdapter(query, conn);
//fill dataset
da.Fill(ds)
0
 
LVL 35

Accepted Solution

by:
YZlat earned 250 total points
ID: 17884945
oops, forgot a semicolon:

DataSet ds= New DataSet();
SqlDataAdapter da= New SqlDataAdapter(query, conn); //where query is a sql statement and conn is a connection object
//fill dataset
da.Fill(ds);
0
 

Author Comment

by:mathieu_cupryk
ID: 17885007
Cool
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the adminiā€¦

680 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question