Diffrent types of function

Answer Posted / subbu

There are three types :
Scalar
In-line and
Multi-statement functions

Scalar UDFs return a single value. They are similar to
built-in functions such as DB_NAME(), GETDATE(), or USER_ID
(), which return a single string, date, or integer

In-line UDFs return a single row or multiple rows and can
contain a single SELECT statement. Because in-line UDFs are
limited to a single SELECT, they can't contain much logic

multi-statement UDFs can contain any number of statements
that populate the table variable to be returned. Notice
that although you can use INSERT, UPDATE, and DELETE
statements against the table variable being returned, a
function cannot modify data in permanent tables

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is index, cluster index and nonclustered index?

516


What are various ways to enhance the ssrs report?

536


What is checkpoint process in the sql server?

551


What is the difference between having clause and where clause in sql server?

576


SQL Server Architecture ?

1936






How many types of schemas are there?

531


What is encryption key?

84


What are the steps to insert a table?

541


How to create a trigger for insert only?

601


Explain trigger and trigger types?

559


Explain the types of indexes.

643


What is meant by Active-Passive and Active-Active clustering setup?

568


What is sql server schema compare? How we can compare two database schemas?

566


Can another user execute your local temporary stored procedures?

547


How to count groups returned with the group by clause in ms sql server?

562