Backup and Restore SQL stored procedures

  • May i know correct and easy way of backup and restore SQL stored procedures?

  • Just the stored procedures without the database? Put them in source control, either manually via scripting or via a tool that interfaces directly.

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • Very much appreciate if If you can provide clear guidance...

    anyway How can i backup System Stored procedures also...?

  • You don't need to, they can't be changed and you wouldn't be able to 'restore' them.

    What are you trying to do here?

    Procedures (and views, functions, etc) in source control is a good practice, but it's not really a backup. Backups are what you do of the entire DB.

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • I want to backup all settings, Data of existing SQL server and restore them another new server.

    like a migration...

  • Then you back up the user databases and restore them on the other server.

    Don't backup and restore the system databases though, script out logins, jobs, server-level permissions, linked servers and run the scripts on the other server.

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • Thank you for reply.

    Can you please provide simple guidance with screen shots....?

Viewing 7 posts - 1 through 6 (of 6 total)

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