Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • Call a procedure with in procedure in SQL server

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 220
    Comment on it

    Call a procedure with in procedure in SQL server :-

    While working in sql Some times you need to Calling one stored procedure within another stored procedure. So you can implement this using below sample code:---

    1. //Store Procedure 1
    2. CREATE PROCEDURE uspTest1
    3. AS
    4. BEGIN
    5. SELECT * FROM Student
    6. END
    7.  
    8. //Store Procedure 2
    9. CREATE PROCEDURE uspTest2
    10. AS
    11. BEGIN
    12. // To call the Procedure uspTest1 in this procedure
    13. // Its return that Procedure output.
    14. exec uspTest1
    15. END

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Reset Password
Fill out the form below and reset your password: