Modifying a Stored Procedure

Last post 07-04-2009 8:56 AM by AMOURGH. 4 replies.
Page 1 of 1 (5 items)
Active Topics My Discussions Unanswered Sort Posts: Previous Next
  • 07-02-2009 1:41 PM

    • vcklo
    • Not Ranked
    • Joined on 07-02-2009
    • Posts 2

    Modifying a Stored Procedure

    Hi everyone,

     I have an existing database file that I am opening with MS SQL Server Management Studio Express with pre-existing Stored Procedures. I would like to make modifications to some of the procedures. I right-click on the procedure I would like to change and Click 'Modify...'

     However, after I finish making my changes and click 'Save', it prompts me to save the file as a new query file, which is not what I want to do. I want to update the Stored Procedure itself, not create a new query file. Can anyone clarify this situation for me?

     Thanks,

    Victor

  • 07-02-2009 7:35 PM In reply to

    Re: Modifying a Stored Procedure

    May be you are clicking the save button instead of execute...

    Try just pressing F5 or CTRL E after modifications....

     

    MohammedU.
    Microsoft SQL Server MVP
    Moderator
    SQL-Server-Performance.com

    All postings are provided “AS IS” with no warranties for accuracy.
  • 07-02-2009 9:45 PM In reply to

    • vcklo
    • Not Ranked
    • Joined on 07-02-2009
    • Posts 2

    Re: Modifying a Stored Procedure

     Thanks. I was pressing the save button--I'm a novice and I had no idea that to save your changes you actually need to execute your statments for the changes to be saved.

  • 07-03-2009 1:03 AM In reply to

    Re: Modifying a Stored Procedure

    SQL Server saves all code internally in some of its system tables. So if you want some code to be "persisted" to a database you need to inject it into the database by executing a script. Of course, no one keeps you from having a backup copy of the script somewhere on the file system. Smile

    --
    Frank Kalis
    Microsoft SQL Server MVP
    Contributing Editor, Writer & Forum Moderator http://www.sql-server-performance.com
    Webmaster: http://www.insidesql.org
    View Frank Kalis's profile on LinkedIn
  • 07-04-2009 8:56 AM In reply to

    Re: Modifying a Stored Procedure

    Hi Frankkalis, Can you tell us where(tables) SQL Server saves all the code in system tables? Thanks Rachid
Page 1 of 1 (5 items)
Active Topics   My Discussions    Unanswered Posts


© 2010 Jude O'Kelly All Rights Reserved.