Want to become a Vibe Coder? Join Vibe Coding Training here
x
C# Corner
Tech
News
Videos
Forums
Jobs
Books
Events
More
Interviews
Live
Learn
Training
Career
Members
Blogs
Challenges
Certification
Contribute
Article
Blog
Video
Ebook
Interview Question
Collapse
Feed
Dashboard
Wallet
Learn
Achievements
Network
Refer
Rewards
SharpGPT
Premium
Contribute
Article
Blog
Video
Ebook
Interview Question
Register
Login
Difference Between Functions And Store Procedure
WhatsApp
Kml Surani
9y
3.5
k
0
0
25
Blog
Store Procedure
Store Procedure may not return value.
It can Used DDL,DML Command
Store Procedure can have input and output parameter.
Store Procedure can used try, catch blocks
Used Transaction within Store procedure
Store Procedure can call function.
Stored Procedures cannot be used in the SQL statements anywhere in the WHERE/HAVING/SELECT section.
Function
Function Must Return a Value.
It can only select statements. It cannot used DML Command.
Function Only Input parameters.
Function cannot used try,catch blocks.
Transaction are not allowed within function.
Procedure cannot call from function.
Function can be used in the SQL statements anywhere in the WHERE/HAVING/SELECT section.
Functions
Store Procedure
SQL
People also reading
Membership not found