473,387 Members | 3,033 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,387 software developers and data experts.

Dataset VS2005 and SQLServer2005

Hi,

I've build a application, and this is the first time that i try to use
the dataset (designer) from VS. It seems to be very intressing
building a dataaccesslayer into my application. I use stored
procedures for the actions on the databases. This working fine. But
now i want to use the return value of the SP.

Ik can do actions on the database and can say RETURN 0 of RETURN
@@Error.

The problem is how can i read the return value from my dataset, or do
i need to build the DAL by myself (as i always did before)

thnx

Oct 19 '07 #1
2 1382
active T wrote:
Hi,

I've build a application, and this is the first time that i try to use
the dataset (designer) from VS. It seems to be very intressing
building a dataaccesslayer into my application. I use stored
procedures for the actions on the databases. This working fine. But
now i want to use the return value of the SP.

Ik can do actions on the database and can say RETURN 0 of RETURN
@@Error.

The problem is how can i read the return value from my dataset, or do
i need to build the DAL by myself (as i always did before)

thnx
If I've understood you correctly...

In your DataSet designer, right click on the table adapter and select to
add a new query. Follow the wizard, making sure that you select the
option to return a single value (the choice is between returning a
table, a single value, or nothing).

You may need to wrap your return in a select in your SP.

HTH
Peter
Oct 19 '07 #2
That's possible to do.

Only if you want to do:

Select colA,colB from TableZ
And there's an errorcode 516 (a random error number)

I want to return a error 516

If there no errors, i want to return the results inclusive the return
value 0.

This is handy by inserting data. You can receive the new values and
errormessages.
Oct 19 '07 #3

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

Similar topics

4
by: paul | last post by:
Hi, Im trying to add a dataset to the app_code directory using vs2005 \ SQL2005 beta 2. When I run through the wizard I select the option to auto create new Stored Procedures (Select, update,...
1
by: abc my vclass | last post by:
Is VS2005 debugger let me to see dataset, datatable data as table form? I found if I watch some table or dataset variable is very very hard to see. Is there any good tools or add-ins for debugger...
0
by: Spike Spiegel | last post by:
Hello C# developers out there. I am working with SQL 2005 and starting a program on C#. I need to create a data layer and I would like to take advantage of the DataSet functionality in VS2005....
3
by: paolol | last post by:
Hi, I will like to read and set the Connection string in a dataset created by the Vs2005 wizard, but I'm not able to find any way to interact with is connection string ( unless I change the Xml...
1
by: eljainc | last post by:
Hello, I have a program written in C#.NET VS2005 that accesses a SQL database/data table through a dataset. It was decided that a valued defined as a smallint in SQL Server should be changed to...
2
by: David++ | last post by:
Hello list, I have built a project in VS2005 which includes a Web Service Web Site. On this server there is a Database. I have used the DataSet designer to link to this database and VS2005 has...
56
by: Squishy | last post by:
I tried installing my VS2005 Pro on Vista Ultimate 32 bit RTM today and got errors stating that VS2005 was not compatible with Vista. Microsoft......please pull your finger out of my ass and tell...
0
by: =?Utf-8?B?UGV0ZXI=?= | last post by:
I'm using Visual Basic in VS2005. How many different ways I can create a type dataset and a untype dataset? Ways to create type dataset 1. Use Dataset Designer 2. Use Data Source...
3
by: Dave Anson | last post by:
The DataSet designer in Visual Studio 2005 is still pointing to the old database. I have done this before and it worked without a hitch. The problem is that I have moved the database and...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
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
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...

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.