Click here to Skip to main content
15,895,084 members
Home / Discussions / Database
   

Database

 
GeneralRe: Sorted, kind of.... Pin
leppie29-Nov-02 13:03
leppie29-Nov-02 13:03 
GeneralRe: Sorted, kind of.... Pin
Not Active29-Nov-02 14:54
mentorNot Active29-Nov-02 14:54 
GeneralRe: Sorted, kind of.... Pin
leppie30-Nov-02 4:41
leppie30-Nov-02 4:41 
GeneralRe: Sorted, kind of.... Pin
Not Active30-Nov-02 7:31
mentorNot Active30-Nov-02 7:31 
GeneralRe: Sorted, kind of.... Pin
leppie30-Nov-02 13:34
leppie30-Nov-02 13:34 
GeneralRe: Sorted, kind of.... Pin
Not Active30-Nov-02 19:50
mentorNot Active30-Nov-02 19:50 
General@RETURN_VALUE Pin
leppie29-Nov-02 8:04
leppie29-Nov-02 8:04 
GeneralRe: @RETURN_VALUE Pin
Jamie Nordmeyer29-Nov-02 9:18
Jamie Nordmeyer29-Nov-02 9:18 
Hey Leppie. The @RETURN_VALUE parameter is auto-created, as you guessed, by SQL Server when you Return something. For Example:

SQL
ALTER PROCEDURE uspIsValidUser
   @UserName VarChar(20)
AS
BEGIN
   IF (SELECT COUNT(*) FROM tblUsers WHERE UserName = @UserName) = 1
   BEGIN
      SELECT UserName, Address, City, State, ZipCode
         FROM tblUsers
         WHERE UserName = @UserName
      RETURN True
   END
   ELSE
      RETURN False
END

In your code, you can then check the value of @RETURN_VALUE value to see what was returned. It's possible to return datasets at the same time due to the fact that return VALUES are automatically stored in @RETURN_VALUE.

Jamie Nordmeyer
Portland, Oregon, USA
GeneralRe: @RETURN_VALUE Pin
leppie29-Nov-02 9:40
leppie29-Nov-02 9:40 
GeneralRe: @RETURN_VALUE Pin
Not Active29-Nov-02 12:34
mentorNot Active29-Nov-02 12:34 
GeneralRe: @RETURN_VALUE Pin
leppie29-Nov-02 12:56
leppie29-Nov-02 12:56 
GeneralRe: @RETURN_VALUE Pin
Not Active29-Nov-02 14:49
mentorNot Active29-Nov-02 14:49 
GeneralRe: @RETURN_VALUE Pin
leppie29-Nov-02 23:21
leppie29-Nov-02 23:21 
GeneralAccessing a compiled Access dB Pin
Paul Watson29-Nov-02 2:33
sitebuilderPaul Watson29-Nov-02 2:33 
GeneralRe: Accessing a compiled Access dB Pin
Nick Parker4-Dec-02 9:13
protectorNick Parker4-Dec-02 9:13 
GeneralAccess, CCommand and passwords Pin
LukeV28-Nov-02 5:59
LukeV28-Nov-02 5:59 
GeneralRe: Access, CCommand and passwords Pin
Mazdak28-Nov-02 23:02
Mazdak28-Nov-02 23:02 
GeneralRe: Access, CCommand and passwords Pin
LukeV29-Nov-02 3:00
LukeV29-Nov-02 3:00 
GeneralRe: Access, CCommand and passwords Pin
Mazdak29-Nov-02 8:31
Mazdak29-Nov-02 8:31 
GeneralRe: Access, CCommand and passwords Pin
Mazdak29-Nov-02 8:48
Mazdak29-Nov-02 8:48 
GeneralMS Access to Oracle Pin
Venkatraman27-Nov-02 17:16
Venkatraman27-Nov-02 17:16 
GeneralCompare Tables Pin
Jason Weibel27-Nov-02 2:20
Jason Weibel27-Nov-02 2:20 
GeneralODBC HELP WANTED! Pin
MFC is the Best25-Nov-02 22:08
MFC is the Best25-Nov-02 22:08 
GeneralADO book Pin
Rickard Andersson2024-Nov-02 23:28
Rickard Andersson2024-Nov-02 23:28 
GeneralRe: ADO book Pin
Christian Graus25-Nov-02 12:08
protectorChristian Graus25-Nov-02 12:08 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.