Solved

how to populate a dataset from a dataadapter?

Posted on 2006-11-06
4
619 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

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

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

Article by: Najam
Having new technologies does not mean they will completely replace old components.  Recently I had to create WCF that will be called by VB6 component.  Here I will describe what steps one should follow while doing so, please feel free to post any qu…
Introduction This article series is supposed to shed some light on the use of IDisposable and objects that inherit from it. In essence, a more apt title for this article would be: using (IDisposable) {}. I’m just not sure how many people would ge…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…

626 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