Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

can i write function in stored procedure and stored
procedure in function and nested procedure.Give one example
for each question?

Answer Posted / dba

You cannot define stored procedures (SP) or user-define
functions (UDF) in a nested fashion. However, you can
execute SPs and UDFs inside of stored procedures. The
nesting is limited to 32 levels deep (A calls B, which calls
C, etc). So if a recursive call is used (A calls A), you
must have some method of stopping before 32 levels is exceeded.

You can call SPs and UDFs from inside of a UDF, but this
ability is quite limited. If a SP has any side effect, it
cannot be called. So, the SP cannot be used to return any
values to the function.

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are page splits? : SQL Server Architecture

981


How adventureworkslt tables are related?

924


What is the purpose of the master database?

1115


What are a scheduled jobs?

952


What is the difference between SQL notification and SQL invalidation?

1176


System variable and temporary variables

2244


what is the information that can be stored inside a bit column? : Sql server database administration

953


Does partitioning help performance?

929


how to invoke a trigger on demand? : Sql server database administration

1073


What is serializable?

1034


What is the use of custom fields in report?

992


How to edit table in sql server 2017?

920


What is wide table?

944


Does sql server 2000 clustering support load balancing?

960


What are different types of raid levels?

1158