Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
First SP
Message
 
 
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Stored procedures, Triggers, UDFs
Titre:
Divers
Thread ID:
00759576
Message ID:
00759579
Vues:
23
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--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform