can i write function in stored procedure and stored
procedure in function and nested procedure.Give one example
for each question?
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 |
What are the operating modes in which database mirroring runs?
What are the different types of replication? How are they used?
What are synonyms?
What is the use of floor function in sql server?
How to find related tables in sql server?
Write an SQL query if u want to select the data from one block which intern reflects in another block ? thanx,do reply
What is database replicaion? What are the different types of replication you can set up in SQL Server?
What is SQL Server?
What is truncate table?
How do indexes help, types?
What is The Use Of TIMESTAMP DataType in SQL Server 2005?
Display a roll having miminum marks in two subjects?
Oracle (3259)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)