Please start any new threads on our new site at We've got lots of great SQL Server experts to answer whatever question you can come up with.

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
Save Password
Forgot your Password?

 All Forums
 SQL Server 2008 Forums
 Transact-SQL (2008)
 How to Get the Alter Procedure Script in Sql serve
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Posting Yak Master

213 Posts

Posted - 07/01/2013 :  06:28:04  Show Profile  Reply with Quote
Hi all

I have Created Stored procedure in SSMS 2008.Unexpectedly this proceudre has been there way to get previous Script.

i have tried to Restore my entire database.(this is not suitable for me)
i need to get the before altered script.pls explain the way.

Very Important crosS Applying yaK Herder

52326 Posts

Posted - 07/01/2013 :  06:32:03  Show Profile  Reply with Quote
Nope. No way until you either have the previously created create procedure script in some version control (like VSS,TFS) or you've an earlier backup of the database before the altering happened
If you've latter you can use it to restore a new copy of the db, then copy only required procedure to your database and then drop the other copy.

SQL Server MVP
Go to Top of Page

Constraint Violating Yak Guru

352 Posts

Posted - 07/01/2013 :  10:39:24  Show Profile  Reply with Quote
When retoring a database it does not have to be named the same. So if you have a database MYDatabase you could restore it to MyDatabase2.

Go to Top of Page
  Previous Topic Topic Next Topic  
 Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.02 seconds. Powered By: Snitz Forums 2000