Nested stored procedure in SQL

Sindhu Garapati

I am new to SQL sever. Can anyone help me out on how to write a nested stored procedure in sql server 2008 that has output parameters?

Rahul Tripathi

You may check this: Nesting Stored Procedures Although an important note to quote

Although the nesting limit is 32 levels, SQL Server has no limit on the number of stored procedures that can be invoked from a given stored procedure, provided that the subordinate stored procedures do not invoke other subordinate stored procedures and the maximum nesting level is never exceeded.

Example:

CREATE PROCEDURE [dbo].[Test1]
        @ID INT,
        @Emp INT

AS
BEGIN

    DECLARE @x UserDefinedTableVariable

    EXEC @x = Test2
        @SomeID = @ID

END

이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.

침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제

에서 수정
0

몇 마디 만하겠습니다

0리뷰
로그인참여 후 검토

관련 기사

분류에서Dev

Call stored procedure from PL/SQL Job

분류에서Dev

SQL Stored Procedure Get Distinct and Update

분류에서Dev

Converting Stored Procedure into a query (SQL Server Compact)?

분류에서Dev

PL/SQL Stored Procedure - IF THEN ELSE condition

분류에서Dev

Varchar value not passing into SQL Server stored procedure

분류에서Dev

SQL stored procedure: how to concatenate parameter value?

분류에서Dev

SQL server create stored procedure syntax error

분류에서Dev

how to secure a valuable stored procedure in sql server

분류에서Dev

SQL Stored procedure does not enter IF and CASE condition

분류에서Dev

SQL server stored procedure issue in via with c#

분류에서Dev

SQL Server : stored procedure many-to-many table query

분류에서Dev

How to pass schema as parameter to a stored procedure in sql server?

분류에서Dev

Executing Sql Server Stored Procedure and getting OUTPUT INSERTED value

분류에서Dev

SQL Server: EXECUTE AS clause of stored procedure not granting sysadmin permissions

분류에서Dev

SQL - Using a select statement and loop to populate a stored procedure

분류에서Dev

Passing Strings to a Class Method that passes information to stored SQL procedure

분류에서Dev

Return rowcount from stored procedure T-SQL

분류에서Dev

SQL Stored Procedure Insert All Dates From Current Month Not In

분류에서Dev

Stored procedure in PL/SQL to insert new record in table

분류에서Dev

How to parse a VARCHAR passed to a stored procedure in SQL Server?

분류에서Dev

How can I back up a stored procedure in SQL Server?

분류에서Dev

SQL Server Stored procedure aborting when called from php

분류에서Dev

Stored procedure with conditional insert

분류에서Dev

Adding a stored procedure to a database

분류에서Dev

Stored procedure to encrypt data

분류에서Dev

Stored procedure not working

분류에서Dev

Simple If Statement in Stored Procedure

분류에서Dev

Transaction in Stored procedure

분류에서Dev

Call stored procedure with Repository

Related 관련 기사

  1. 1

    Call stored procedure from PL/SQL Job

  2. 2

    SQL Stored Procedure Get Distinct and Update

  3. 3

    Converting Stored Procedure into a query (SQL Server Compact)?

  4. 4

    PL/SQL Stored Procedure - IF THEN ELSE condition

  5. 5

    Varchar value not passing into SQL Server stored procedure

  6. 6

    SQL stored procedure: how to concatenate parameter value?

  7. 7

    SQL server create stored procedure syntax error

  8. 8

    how to secure a valuable stored procedure in sql server

  9. 9

    SQL Stored procedure does not enter IF and CASE condition

  10. 10

    SQL server stored procedure issue in via with c#

  11. 11

    SQL Server : stored procedure many-to-many table query

  12. 12

    How to pass schema as parameter to a stored procedure in sql server?

  13. 13

    Executing Sql Server Stored Procedure and getting OUTPUT INSERTED value

  14. 14

    SQL Server: EXECUTE AS clause of stored procedure not granting sysadmin permissions

  15. 15

    SQL - Using a select statement and loop to populate a stored procedure

  16. 16

    Passing Strings to a Class Method that passes information to stored SQL procedure

  17. 17

    Return rowcount from stored procedure T-SQL

  18. 18

    SQL Stored Procedure Insert All Dates From Current Month Not In

  19. 19

    Stored procedure in PL/SQL to insert new record in table

  20. 20

    How to parse a VARCHAR passed to a stored procedure in SQL Server?

  21. 21

    How can I back up a stored procedure in SQL Server?

  22. 22

    SQL Server Stored procedure aborting when called from php

  23. 23

    Stored procedure with conditional insert

  24. 24

    Adding a stored procedure to a database

  25. 25

    Stored procedure to encrypt data

  26. 26

    Stored procedure not working

  27. 27

    Simple If Statement in Stored Procedure

  28. 28

    Transaction in Stored procedure

  29. 29

    Call stored procedure with Repository

뜨겁다태그

보관