Sep 12, 2003 #1 MattN Programmer Jan 21, 2002 29 GB Can anyone give me a sample of a very simple stored procedure which uses a parameter i.e. OrderNo This would be most helpful to get me started. I will figure out the rest. Kind Regards MattN
Can anyone give me a sample of a very simple stored procedure which uses a parameter i.e. OrderNo This would be most helpful to get me started. I will figure out the rest. Kind Regards MattN
Sep 12, 2003 1 #2 rdl1206 Programmer Sep 11, 2003 2 US If you still have the 'pubs' database on your install... CREATE PROCEDURE byroyalty @percentage int AS select au_id from titleauthor where titleauthor.royaltyper = @percentage GO ...this stored proc is still there. Execute the stored proc... EXEC byroyalty @percentage = 100 Upvote 0 Downvote
If you still have the 'pubs' database on your install... CREATE PROCEDURE byroyalty @percentage int AS select au_id from titleauthor where titleauthor.royaltyper = @percentage GO ...this stored proc is still there. Execute the stored proc... EXEC byroyalty @percentage = 100
Sep 12, 2003 Thread starter #3 MattN Programmer Jan 21, 2002 29 GB So simple when you know how. Now I can progress to the more complex. Thanks Upvote 0 Downvote