Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Help with SQL Server Stored Procedure
Message
De
03/12/2001 08:26:02
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Divers
Thread ID:
00588591
Message ID:
00588650
Vues:
35
This message has been marked as a message which has helped to the initial question of the thread.
Hi, Kirk

Vlad already gave a sound advice that you sould take note of. Here are my remarks regarding your post:

1) in the procedure declaration, don't forget to set the size for varchar (in this case, 5 - that's why just the first character is inserted in the table, you're using a varchar(1));

2) You're forgetting the begin...end around multiple statements (as you wrote it, after an if just the immediate statement is executed in response to a positive condition; and your else is hanging around without a matching if);

3) quoting from SQL's manual: "GO is not a Transact-SQL statement, it is a command recognized by the osql and isql utilities and SQL Server Query Analyzer."; you shouldn't put it in stored procedure codes;

4) There are what I believe to be a few typos in your code - is this your exact code?


bye
----------------------------------
António Tavares Lopes
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform