Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

how to populate a dataset from a dataadapter?

Posted on 2006-11-06
4
Medium Priority
?
624 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 1000 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
This Micro Tutorial will teach you how to add a cinematic look to any film or video out there. There are very few simple steps that you will follow to do so. This will be demonstrated using Adobe Premiere Pro CS6.
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …

782 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