Don’t think much … Open Query Analyse and press F1
Search for CREATE PROCEDURE
Got it ….
Take the SQL Statement that you want to make the stored procedure and put the below line above it. Then run the script. This will create a stored procedure based on the name you provided in the database.
CREATE PROCEDURE YourProcedureName AS
You should also read my blog entry on Stored Procedures.