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
Rewards
SharpGPT
Premium
Contribute
Article
Blog
Video
Ebook
Interview Question
Register
Login
Difference Between Functions And Store Procedure
WhatsApp
Kml Surani
9y
3.4
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
Up Next
Difference Between Stored Procedures and Triggers
Ebook Download
View all
Functions in SQL Server: Practical Guide
Read by 9k people
Download Now!
Learn
View all
Membership not found