473,651 Members | 2,630 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1293
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!

"saidevakum ar" 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
3400
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 sqlserver? thanks a lot, d
4
3904
by: My Deja | last post by:
I need examples of stored procedures returning datasets. Can anyone point me to some examples?
5
2132
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 as I know, DB2 stored procedures cannot do terminal I/O on any operating system but I know that (Java) stored procedures in Windows/Linux/Unix can write to files and I have done this many times.
5
3470
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 Procedures. I thought stored pricedures were an Oracle/MS SQL Server thing and don't know how they work with Access Jet. I've looked at some of the help on stored procedures in A2003, but really don't understand what's going on. Can someone...
1
1047
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 a lot of parameters (around 20) to add or modify a customer. It's long to write but i can deal with that. However, i was wondering if it is really efficient. In this case are stored procedures with many parameters better than using a dataset to
12
2292
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 some one give me some advice? Thanks for help.
0
2310
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 insertions back into the database. I have created new projects using datasets that are filled by three stored procedures that are bound to the forms using a datasource. The problem is, we may be using Oracle as well as SQL Server to retrieve this...
3
4869
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 would like to know is if it wraps database Stored Procedures as methods and functions? For instance, if I have a Stored Procedure called SelectBestProduct in the Product table, would I be able to call the Stored Procedure with
5
4070
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 framework to auto-generate a table adapter specifying both stored procs as Get/Fill and Update. The problem is that columns from the JOINed table seem to marked as 'read-only' so trying to update a row results in an exception. BTW, by default a...
0
8349
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8695
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8460
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8576
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7296
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6157
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5609
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4281
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2696
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.