SQL Server 2005 - Modifying a Stored Procedure

Hi Experts,
I am using SQL 2005, and I need to modify one of existing stored procedures. How do I do that?
Whenever I try to edit and save, it saves it as an external file!
feesuAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Aneesh RetnakaranDatabase AdministratorCommented:
Hello feesu,

dont have to save it, just press F5 after urediting is over


Aneesh R
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
brejkCommented:
In Management Studio open a new query window. Write:

USE <YourDatabaseName>
GO

EXEC sp_helptext <YourProcedureName>
GO

Then just copy the result (your procedure definition) into a new query window, replace word "CREATE" with "ALTER", change procedure body or whatever you need, make sure that you are using the proper database and execute the script.
0
David ToddSenior DBACommented:
Hi,

If you have an if exists ... drop ... create ... script, yes save sill save an external file.

You need to execute the query.

HTH
  David
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft SQL Server 2005

From novice to tech pro — start learning today.