Solved

how to populate a dataset from a dataadapter?

Posted on 2006-11-06
4
618 Views
Last Modified: 2011-10-03
how to populate a dataset from a dataadapter?
0
Comment
Question by:mathieu_cupryk
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

In order to hide the "ugly" records selectors (triangles) in the rowheaders, here are some suggestions. Microsoft doesn't have a direct method/property to do it. You can only hide the rowheader column. First solution, the easy way The first sol…
We all know that functional code is the leg that any good program stands on when it comes right down to it, however, if your program lacks a good user interface your product may not have the appeal needed to keep your customers happy. This issue can…
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…

752 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