473,406 Members | 2,713 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Stored Procedures and DataSets

Hello -

I am used to retrieving data with stored procedures. DataSets have me
baffled inasmuch as it exposes Sql statements directly in the code, however,
I think I need to be working with Datasets for what I'm doing because I can't
be continually posting back to the server.

Is there a way to create datasets from stored procedures?

Also, I have three tables. If I use datasets that access data from all
three tables, do I create three datadapters and three datasets?

As you can tell, I'm quite confused. Any enlightenment will be appreciated!

Sandy
Nov 19 '05 #1
2 1281
Hi Sandy,

To create datasets from stored procedure easily. Microsoft provides the
various application blocks out of which data access application block is one
which contains some handy methods to execute the stored procedures. All you
have to do is download the application block from the internet and add the
reference of that dll into your application. Once you add the reference you
will get a SQLHELPER class.

The SqlHelper has some handy methods to create datasets like executeDataSet().

To download the application blocks here is the UR
http://www.microsoft.com/downloads/d...displaylang=en

Regards
Saidevakumar

"Sandy" wrote:
Hello -

I am used to retrieving data with stored procedures. DataSets have me
baffled inasmuch as it exposes Sql statements directly in the code, however,
I think I need to be working with Datasets for what I'm doing because I can't
be continually posting back to the server.

Is there a way to create datasets from stored procedures?

Also, I have three tables. If I use datasets that access data from all
three tables, do I create three datadapters and three datasets?

As you can tell, I'm quite confused. Any enlightenment will be appreciated!

Sandy

Nov 19 '05 #2
Thanks for your response, saidevakumar. I was unaware of this download. I
appreciate the tip!

"saidevakumar" wrote:
Hi Sandy,

To create datasets from stored procedure easily. Microsoft provides the
various application blocks out of which data access application block is one
which contains some handy methods to execute the stored procedures. All you
have to do is download the application block from the internet and add the
reference of that dll into your application. Once you add the reference you
will get a SQLHELPER class.

The SqlHelper has some handy methods to create datasets like executeDataSet().

To download the application blocks here is the URL
http://www.microsoft.com/downloads/d...displaylang=en

Regards
Saidevakumar

"Sandy" wrote:
Hello -

I am used to retrieving data with stored procedures. DataSets have me
baffled inasmuch as it exposes Sql statements directly in the code, however,
I think I need to be working with Datasets for what I'm doing because I can't
be continually posting back to the server.

Is there a way to create datasets from stored procedures?

Also, I have three tables. If I use datasets that access data from all
three tables, do I create three datadapters and three datasets?

As you can tell, I'm quite confused. Any enlightenment will be appreciated!

Sandy

Nov 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Daniel | last post by:
hi ng, i am newbie to sqlserver and my problem seems simple, but i didn't find information about it: How can i display the RETURN @x value of a stored procedure in the sql analyzer of the...
4
by: My Deja | last post by:
I need examples of stored procedures returning datasets. Can anyone point me to some examples?
5
by: Rhino | last post by:
This question relates to DB2 Version 6 on OS/390. Can a (COBOL) stored procedure on this platform do file I/O, i.e. write to a sequential file? I am trying to debug a stored procedure. As far...
5
by: Tim Marshall | last post by:
I was following the thread "Re: Access Treeview - Is it Safe Yet?" with interest and on reading the post describing Lauren Quantrell's SmartTree, I've run into something I don't understand: Stored...
1
by: Matt | last post by:
Hello, I'm working on a project in which i use Sql Server stored procedures to add and modify the records of our customers. This works fine, but when writing these stored procedures, i must use...
12
by: Jason Huang | last post by:
Hi, In my C# Windows Form application project, I have done all queries on my codes. Now I wanna try using the Stored Procedure. But I am not clear about why using the stored procedure. Would...
0
by: ccorbett | last post by:
Hi, I am pretty new to microsoft programming environment. I want to create forms in visual basic 2005 studio that read data from stored procedures and load into the forms for editing and new...
3
by: Jon B | last post by:
Hi There! I'm looking into Strongly Typed DataSets in the .NET Framework. I know it can generated strongly typed tables as objects and column names as properties. However, one thing that I...
5
by: Bogdan | last post by:
Hi, I have a stored procedure that uses JOINs to return columns from multiple tables. I also have another stored proc that that takes a series of params and updates multiple tables. I used the...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.