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 is the difference between a local and a global temporary table?

1123


what are statistics, under what circumstances they go out of date, how do you update them? : Sql server database administration

952


Is sql server is free?

985


What is updatable resultset?

1010


What happens if null values are involved in boolean operations?

987


What is the sql case statement used for? Explain with an example?

996


Explain about merge replications?

1031


What is the maximum number of index per table?

1073


What stored by the model? : sql server database administration

959


Suppose i have a table that contains 5 columns like col1,col2...colm5.I want to import only two column through BCP utility.How to do same through BCP in sybase.

2399


How to create new table with "create table" statements?

1112


What does ss stand for sexually?

1089


What is the maximum size per database for sql server express?

1058


How to loop through returning rows?

1039


What is sql sandbox in sql server?

1233