how to create a procedure in sql server
friends today i will tell you how to create a proceduresyntax of creating procedure-- create procedure procedure name
Example --suppose you create a table which name is fee and its fields name is name,age,class,city and you want to see only name and city fields in output
you right following query
to create a procedure
--create procedure ravi
as begin
select name,city from fee
end
Then you press f5--
To execute store procedure you right following query
exec ravi
Then press f5
Thank you
No comments:
Post a Comment