Script for Creating backup sp before modifying orginal sp

  • My requirement is to write one script that will create a backup of sp,so that if I modify sp I will have one backup sp if some thing goes wrong,I can revert the changes.

    For example I have sp USPCreateEnterprise so before doing modification in USPCreateEnterprise I want to make sure to create sp USPCreateEnterprise_03_11_2010_Bak and then I want to modify USPCreateEnterprise.I can take backup of sp throgh sp_helptext also and manually saving it to some files or creating it.

    But my requirement is to I will just pass sp name and script should create backup of input sp with date appended in sp Name.

    Thanks in advance

    Suman

Viewing 0 posts

You must be logged in to reply to this topic. Login to reply