Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Unexpected behavior from a Stored procedure
Message
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Stored procedures, Triggers, UDFs
Divers
Thread ID:
00197811
Message ID:
00200474
Vues:
12
>What is the select statement vs stored procedure in question?

I was running a Select statement in a query to display the result on the screen and ran the same Select statement in a Stored Procedure in order to automate the process. I used to get different results every time I run it. After many trials I realized that the prefix "sp_ " of a name stored procedure is a reserved prefix for SQL. The "sp_ " prefix is reserved for system stored procedures in the Master database only. So I had to change the prefix of the name of my user-defined stored procedure to something like "p_ " and that solved the problem.

Thanks.
Bernard A. Chamma
BPTI
Custom Database & Reporting Solution
450-687-7850
Bernard@bptechusa.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform