﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / SQL Server 2008 / SQL Server 2008 - General  / Rollback Script / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Thu, 23 May 2013 21:43:43 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Rollback Script</title><link>http://www.sqlservercentral.com/Forums/Topic1354387-391-1.aspx</link><description>Thank You Gail n Mike..You guys really helped me..</description><pubDate>Thu, 06 Sep 2012 02:54:50 GMT</pubDate><dc:creator>Junglee_George</dc:creator></item><item><title>RE: Rollback Script</title><link>http://www.sqlservercentral.com/Forums/Topic1354387-391-1.aspx</link><description>[quote][b]Junglee_George (9/5/2012)[/b][hr]Yes Gail, rollback script is what I need.Can you pls help on this? Just a sample SQl Script will do.Thanks[/quote]Sure.[code="sql"]ALTER PROCEDURE &amp;lt;the name of the procedure here&amp;gt; (&amp;lt; the parameters of the procedure here&amp;gt;)AS&amp;lt;the text of the procedure as it was before you made the changes&amp;gt;GO[/code]</description><pubDate>Wed, 05 Sep 2012 07:11:34 GMT</pubDate><dc:creator>GilaMonster</dc:creator></item><item><title>RE: Rollback Script</title><link>http://www.sqlservercentral.com/Forums/Topic1354387-391-1.aspx</link><description>There is no generic "rollback script" for this sort of change that anyone can give you.You need to take the soure of the procedure, and change it to remove the change you made last week.It is a very good idea to have some form of version control system to hold all stored procs, triggers, etc etc. We use Subversion - but there are many others. I fyou do not have that in place you can always script ethe procedure as it is now from the database.Mike</description><pubDate>Wed, 05 Sep 2012 05:06:27 GMT</pubDate><dc:creator>Mike John</dc:creator></item><item><title>RE: Rollback Script</title><link>http://www.sqlservercentral.com/Forums/Topic1354387-391-1.aspx</link><description>Yes Gail, rollback script is what I need.Can you pls help on this? Just a sample SQl Script will do.Thanks</description><pubDate>Wed, 05 Sep 2012 03:17:20 GMT</pubDate><dc:creator>Junglee_George</dc:creator></item><item><title>RE: Rollback Script</title><link>http://www.sqlservercentral.com/Forums/Topic1354387-391-1.aspx</link><description>Rolling the change back is probably a good idea...See - [url]http://blogs.msdn.com/b/davidlean/archive/2009/04/06/sql-server-nolock-hint-other-poor-ideas.aspx[/url]The rollback script will just be an ALTER PROCEDURE with the definition of the proc prior to the change that you made.</description><pubDate>Wed, 05 Sep 2012 03:12:37 GMT</pubDate><dc:creator>GilaMonster</dc:creator></item><item><title>RE: Rollback Script</title><link>http://www.sqlservercentral.com/Forums/Topic1354387-391-1.aspx</link><description>Surely just remove the WITH (NOLOCK) hints in your stored procedure?Or am I missing something?</description><pubDate>Wed, 05 Sep 2012 03:10:34 GMT</pubDate><dc:creator>derek.colley</dc:creator></item><item><title>Rollback Script</title><link>http://www.sqlservercentral.com/Forums/Topic1354387-391-1.aspx</link><description>HiI have a simple stored procedure having a select statement.Recently I added a NOLOCK to the table name in the SP.My boss now wants a rollback script to be added in SP to go back to the previous version, ie, version in which NOLOCK is not there in the SP.Any help is grateful</description><pubDate>Wed, 05 Sep 2012 02:59:21 GMT</pubDate><dc:creator>Junglee_George</dc:creator></item></channel></rss>