We help IT Professionals succeed at work.
Get Started

@return_value error

425 Views
Last Modified: 2012-05-07
I'm writing essentially my first real Stored Procedure, and I continue to get this error when I execute it, regarding an @return_value, which I have not even declared in the Stored Procedure.  It displays this code that I did not write:

USE [Prax_PO]
GO

DECLARE      @return_value int

EXEC      @return_value = [dbo].[PRax3]

SELECT      'Return Value' = @return_value

GO


And gives this error message, which is very cryptic:

Msg 102, Level 15, State 1, Procedure ResultingNewQuery, Line 1
Incorrect syntax near ')'.

(1 row(s) affected)


I have no idea what it is talking about and would appreciate any help.  Is it just me or is SQL Server really not intuitive at all?  Thanks a lot in advance.
Comment
Watch Question
CERTIFIED EXPERT
Top Expert 2012
Commented:
This problem has been solved!
Unlock 2 Answers and 8 Comments.
See Answers
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE