Click here to Skip to main content
15,920,031 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
hi, as per your suggestion I was looking on this below page for sql store procedure....But I am really unable to understand anything....plz help me.... .



http://msdn.microsoft.com/en-us/library/aa174792(SQL.80).aspx[^]
Posted

Hi ...

It is the simple SP.

SQL
create procedure procedurename
(
@id varchar(6) //parameters
)
as
begin


select * from custinfo where cust id=@id //Your's query


end

To execute the procedure

exec procedurename '2'//parameter value
 
Share this answer
 
Comments
[no name] 10-Apr-12 3:45am    
Nice example. Short and Sweet for beginner. 5!
If you just wanted to start with Stored Procedure, Arul has given a good starting point. You can manipulate and try to learn from his example easily. If you know already about this come with specific problem. Then only one can help.
 
Share this answer
 
 
Share this answer
 
 
Share this answer
 
Comments
sourch7373 9-Apr-12 2:28am    
thanx a lot....

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