Click here to Skip to main content
15,886,199 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
What is parameterised stored procedure? why do we use it? where we can it be implemented?Can anyone explain it with the help of a example? Thanks.
Posted
Comments
walterhevedeich 30-May-13 6:09am    
Even your spelling is wrong. It's parameterized. And have you read the rules for posting questions, especially the first one? It says "Have you searched or Googled for a solution?"
Orcun Iyigun 30-May-13 6:30am    
What have you tried?[^] just refer them this link :)

1 solution

It is a stored procedure that takes parameters. For example, a stored procedure that returns customer information. You would want a parameter to pass in the specific customer ID you are interested in.

See http://msdn.microsoft.com/en-us/library/aa174792%28v=sql.80%29.aspx[^] for more info.
 
Share this answer
 
Comments
Rambo_Raja 30-May-13 8:02am    
Thanks...
ZurdoDev 30-May-13 8:14am    
You're welcome. If you get stuck on something more specific just come back and ask another question.
Rambo_Raja 30-May-13 8:07am    
k.But we write query in N''. eg @sql = N'select * from test'.why?
ZurdoDev 30-May-13 8:15am    
Why the N? Is that what you are asking? It just means to treat the string as nvarchar instead of varchar. It allows support of unicode characters.
Rambo_Raja 30-May-13 8:45am    
:-)got it.thanks again

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900