SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

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

kond.mohan
Posting Yak Master

India
196 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 Altered.is 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.

visakh16
Very Important crosS Applying yaK Herder

India
52325 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
http://visakhm.blogspot.com/
https://www.facebook.com/VmBlogs
Go to Top of Page

djj55
Constraint Violating Yak Guru

USA
337 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.

djj
Go to Top of Page
  Previous Topic Topic Next Topic  
 New 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.05 seconds. Powered By: Snitz Forums 2000