Hello Friends,
In this Chapter
we will discussed how a function will be call from
Store Procedure in Sql server.First we should know what types of function
is availablein sqlserver.
Mainly there are two types of functions in sqlserver
database
1>System define function
2>User Define Function(UDF)
System define function:
Basically
System Define Functions are the built-in function which is provided by microsoft
like aggregate function,Configuration function,cursor function,mathematical
function,date and time functions etc…
User Define Function(UDF):
UDF is created
by user mainly it categorized into three
types:
1>scalar function
Scalar function
is that types of function which return a single value through RETURN clause.
2>Inline table-valued
function:
But in Inline table-valued function has no function body.It contains result set
of single select statement and table valued function return a table
3>multistatement table-valued
function:
In this function
function body defined in a Begin - End Block,which is contains
transact-sql statements.
Next Chapter we will briefly discuse with valuable example,But now I will create a
simple scalar function and call it from
store procedure.please follow this step…….