Home Forums SQL Server 2008 SQL Server 2008 - General Stored Procedure is not responding, i am executing but does nothign and donot execute RE: Stored Procedure is not responding, i am executing but does nothign and donot execute

  • Andrew G (7/4/2013)


    The DROP procedure statement refers to a different procedure:

    DROP PROCEDURE [dbo].[NIC_OA_GetPatientXRayReportsOut]

    create PROCEDURE [dbo].[NIC_OA_GetPhysicianXRayReportsOut]

    One is PatientXray, the other is PhysicianXray, change DROP statement to:

    IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[NIC_OA_GetPhysicianXRayReportsOut]') AND type in (N'P', N'PC'))

    DROP PROCEDURE [dbo].[NIC_OA_GetPhysicianXRayReportsOut]

    GO

    Don't you just love the NHS :w00t:

    “Write the query the simplest way. If through testing it becomes clear that the performance is inadequate, consider alternative query forms.” - Gail Shaw

    For fast, accurate and documented assistance in answering your questions, please read this article.
    Understanding and using APPLY, (I) and (II) Paul White
    Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden