Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Diff between StoredProcedure and UserDefined Functions?

diff functions userdefined
0
Posted

Diff between StoredProcedure and UserDefined Functions?

0

We can get multiple records set from Stored Procedure. From User Defined functions we can get maximum one recordset in form of table variable. Stored Procedure we can call from middle tier applciation like VB, ASP. User defined function can only used in T-SQL statements. User Defined function we can use as a Table in select statement or in Joins. One major difference is that UDFs can be used as part of an Expression and can be used in SQL Select clause so we cant use Functions to perform any kind of DML operations on the table.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123