Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
First SP
Message
 
General information
Forum:
Microsoft SQL Server
Category:
Stored procedures, Triggers, UDFs
Title:
Miscellaneous
Thread ID:
00759576
Message ID:
00759579
Views:
17
This message has been marked as the solution to the initial question of the thread.
First, there's garbage at the end of your sproc. Second, double click on the error message and QA will bring you to the line with error.

>Hi everybody,
>
>I'm trying to write an SP. Here is what I've wrote so far:
>
>-- =============================================
>-- example to execute the store procedure
>-- =============================================
>DECLARE <@variable_for_output_parameter, sysname, @p2_output> <datatype_for_output_parameter, , int>
>EXECUTE <procedure_name, sysname, proc_test> <value_for_param1, , 1>, <@variable_for_output_parameter, sysname, @p2_output> OUTPUT
>SELECT <@variable_for_output_parameter, sysname, @p2_output>
>GO
>
>I when tried to execute it and here is what I got:
>=======================================================
>Server: Msg 170, Level 15, State 1, Procedure sp_InsertShoppingCartInfo, Line 58
>Line 58: Incorrect syntax near 'UserID'.
>Server: Msg 170, Level 15, State 1, Procedure sp_InsertShoppingCartInfo, Line 70
>Line 70: Incorrect syntax near 'CartID'.
>
>What is incorrect here?
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform