By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,828 Members | 801 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,828 IT Pros & Developers. It's quick & easy.

Syntax for Writing Stored Procedure with Parameters

P: 2
What is the syntax to write Stored Procedure in SQL requiring parameter values from user?
Sep 24 '07 #1
Share this Question
Share on Google+
2 Replies


ck9663
Expert 2.5K+
P: 2,878
What is the syntax to write Stored Procedure in SQL requiring parameter values from user?

http://msdn2.microsoft.com/en-us/library/ms187926.aspx
Sep 24 '07 #2

P: 27
1) Creating a Stored Procedure

Create Procedure <Procedure Name>
(<Parameter1> DataType, <Parameter1> Datatype......)
As
Begin

--your t-sql statements
End
--------------------------------------------------------------------------------------

2) Executing the stored procedure

Exec <Procedure Name> Parameter1, parameter1,.......
Sep 26 '07 #3

Post your reply

Sign in to post your reply or Sign up for a free account.