Enterprise Library 3.1 Catch Return value from stored procedure

Posted on 2007-10-11
Last Modified: 2009-05-05
I am using Microsoft Enterprise library 3.1 in my DataAccessLayer. My stored procedure has a return value
How do i get my return value in my code in DataAccessLayer... I have seen Outputparameter values can be easily retrieved . but how about return values from stored procedure . If return =-1 I want to catch it in my code

like      Create procedure sp_GetEmployee
               Select * from employee
                       if @@ERROR!=0
                                    return -1
Question by:dotnet0824
    LVL 19

    Accepted Solution

    Hello dotnet0824,

    Take a look here:

    More about Stored Procedures using ASP.NET 2.0 with the Microsoft Data Access Application Block



    Expert Comment

    Were you able to find a way to get the return parameter from Stored procedure using enterprie library 3.1?

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    by Mark Wills Attending one of Rob Farley's seminars the other day, I heard the phrase "The Accidental DBA" and fell in love with it. It got me thinking about the plight of the newcomer to SQL Server...  So if you are the accidental DBA, or, simp…
    International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
    Sending a Secure fax is easy with eFax Corporate ( First, Just open a new email message.  In the To field, type your recipient's fax number You can even send a secure international fax — just include t…
    Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

    761 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    8 Experts available now in Live!

    Get 1:1 Help Now