คำตอบ Scripting Alter Stored Procedures (General question)

  • 1 กรกฎาคม 2554 7:28
    ผู้ดูแล
     
     

    ตอนนี้ผมกำลังพัฒนา VSTS desktop ด้วย SQL 2005 DE และ SQL 2005 Enterprise ที่ทำงานบน serverและผมต้องการโมดิไฟล์  stored procedure โดยใช้ SQL Management Studio บน server ซึ่งจะต้องเปิดด้วย scripting ครับ

    EXEC

    dbo.sp_executesql @statement = N' * [sql text following]

    ต้องแก้ไขอย่างไรครับ


    Supa Sethasiripong [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

ตอบทั้งหมด

  • 1 กรกฎาคม 2554 7:28
    ผู้ดูแล
     
     คำตอบ

    ให้เอา "IF NOT EXISTS" ออกค่ะ เพราะ จะทำให้โค้ดไม่สามารถ execution ได้ เพราะว่า ไม่มี stored procedure


    Supa Sethasiripong [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    • ทำเครื่องหมายเป็นคำตอบโดย supa_sModerator 4 กรกฎาคม 2554 2:58
    •