473,403 Members | 2,354 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,403 software developers and data experts.

StoredProcedure

Hello!

I just wonder when you use StoredProcedure will you then use DataSet ?
In the example that I have seen is the DataSet not used is this normal ?

//Tony
Aug 27 '08 #1
2 1259
After serious thinking Tony Johansson wrote :
Hello!

I just wonder when you use StoredProcedure will you then use DataSet ?
In the example that I have seen is the DataSet not used is this normal ?

//Tony
In *what* example that *you* have seen? Without seeing what is in
there, we cannot comment on it.

However:
Some stored procedures return a recordset (the result of some "select"
statement). You can load this recordset into a DataSet *or* process it
in a Reader.
Other stored procedures return nothing (a "delete record" for example)
or just a single value. You would not use a dataset then.

Hans Kesting
Aug 27 '08 #2
Personally, I typically use a Stored Procedure to fill a DataTable because
that is the format that my Stored Procedures return information in.

There's nothing wrong (in my opinion) with using a DataSet, DataTable,
DataReader, or anything else that works. There are many ways to pull data.

"Hans Kesting" wrote:
After serious thinking Tony Johansson wrote :
Hello!

I just wonder when you use StoredProcedure will you then use DataSet ?
In the example that I have seen is the DataSet not used is this normal ?

//Tony

In *what* example that *you* have seen? Without seeing what is in
there, we cannot comment on it.

However:
Some stored procedures return a recordset (the result of some "select"
statement). You can load this recordset into a DataSet *or* process it
in a Reader.
Other stored procedures return nothing (a "delete record" for example)
or just a single value. You would not use a dataset then.

Hans Kesting
Aug 27 '08 #3

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

Similar topics

2
by: PeteZ | last post by:
what using . . . . statement do I need to get this value (CommandType.StoredProcedure) defined ? even when I have defined the using statements: using System; using System.Data.SqlClient;...
4
by: Brian Parker | last post by:
I've been banging my head on this for hours and it's something that should be very very easy. I have a Stored Procedure in a MS-SQL 2000 server that returns a Varchar(40) and I want to grab that...
0
by: Amol | last post by:
Hello, I am developing an apllication in which i want to change the values of datagrid checkbox column according to parameter passed to the query. But the problem is that, at first time when i...
9
by: Frank | last post by:
Hi, imagine there's a WEB application reading data from an Oracle database to visualize in using DataGrids in the clients browser. Yes, sounds simple, just create OracleConnection + OracleCommand...
3
by: jed | last post by:
I need to pass a value that is inserted by the user in a textbox to a variable in my stored procedure. please help
2
by: anoopgopal007 | last post by:
Hi friends... I have one problem... I am using C#, and CrystalReport9. In my project I used StoredProcedure with one input parameter. ...
1
by: baburk | last post by:
Hi All, We all are creating Select statement both in View and StoredProcedure In view it virtually links to tables. What is the difference. Thanks in advance
1
by: phanimadhav | last post by:
Hello friends,I have one small doubt.Acually myclient asking by using tableAdapetr call the MySQL procedures.How to call the MySQL storedprocedure in TableAdapter.In the Table adapter contain one...
1
by: Tony Johansson | last post by:
Hello! Is it possible to use a StoredProcedure when you have SqlDataAdapter or is it only possible when you have SqlCommand like SqlCommand thisCommand = myConnection.CreateCommand;...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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
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.