Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / C# / October 2007

Tip: Looking for answers? Try searching our database.

Dataset VS2005 and SQLServer2005

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
active T - 19 Oct 2007 12:47 GMT
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
Peter Bradley - 19 Oct 2007 14:40 GMT
> Hi,
>
[quoted text clipped - 11 lines]
>
> 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
active T - 19 Oct 2007 15:09 GMT
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.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.