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?



can i write function in stored procedure and stored procedure in function and nested procedure.Give..

Answer / 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

More SQL Server Interview Questions

Why use sub query in sql server and list out types of sub queries?

0 Answers  


Explain the difference between clustered and non-clustered index?

0 Answers  


What are the benefits of normalization?

0 Answers  


What are the different editions available in sql server 2000?

0 Answers  


What is scd (slowly changing dimension)? : sql server analysis services, ssas

0 Answers  


What are the types of user defined functions in sql server?

0 Answers  


How To delete duplicate record from a particular table?

12 Answers   eXensys, Foxfire,


How do I connect to sql server database?

0 Answers  


Define msdb database?

0 Answers  


Explain error and transaction handling in sql server?

0 Answers  


What is sql server management studio? : sql server management studio

0 Answers  


What are the different type of replication in sql server?

0 Answers  


Categories