Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to add a stored procedure to my database?
Message
 
General information
Forum:
Microsoft SQL Server
Category:
Stored procedures, Triggers, UDFs
Environment versions
SQL Server:
SQL Server 2005
Miscellaneous
Thread ID:
01150504
Message ID:
01150542
Views:
51
>>
>>You're confusing Creating sproc and Executing sproc.
>
>Why are you surprised? <g>

In order to create/update sproc in DB you do
-- create
CREATE PROCEDURE myproc
...
-- update 
ALTER PROCEDURE myproc
...
After that you can excute sproc
myproc ...
-- or
EXEC myproc ...
The EXEC[UTE] is required if there're multiple statement ij a batch. I always use it for concistency.
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform