Backup and restore of SQL Server 2014 stored procedures

Source: Internet
Author: User

SQL Server 2014 stored procedure Backup and recovery ... 1

1. Backup stored procedure: ... 1

2, restore ... 8

SQL Server 2014 stored procedure Backup and Recovery 1, backup stored procedures:

Back up the stored procedure in the database management software first

How to: Database-"programmability-" stored procedures

See there are several stored procedures, and then

Select Production Script

Select Next

You can also expand the selection of stored procedures to be backed up:

Choose Next, set scripting options: OK;

Select Next after selecting OK

The backup stored procedure is started:

Backup complete:

Locate the backup location for the stored procedure on the disk:

2, restore

To manually delete a stored procedure:

After the deletion, the stored procedure that you just backed up is opened with Notepad, if you delete it by mistake, select it all, execute it as a SQL statement again, the stored procedure will be restored, if it is deleted individually, you can select the statement of the stored procedure separately, then execute again, and the stored procedure will recover.

The operation is as follows:

Effect:

Backup and restore of SQL Server 2014 stored procedures

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.