how to secuence stored_proc?

  • Hi, its possible to do that a stored_proc not execute while the previous proc has not finished?

    thanks

     

  • Are you wanting to execute a stored procedure while another one is running, execute a stored procedure from within another stored procedure, or have a stored procedure execute after the first one is completed?

    K. Brian Kelley
    @kbriankelley

  • have a stored procedure execute after the first one is completed

  • You'd need something like this :

    CREATE PROCEDURE [dbo].[ProcTest]

    AS

    Exec dbo.Proc1

    Exec dbo.Proc2

    GO

    Proc2 will execute once proc1 is done running.

Viewing 4 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic. Login to reply