Sqlserver database high-version backup to a low version method, sqlserver Database

Source: Internet
Author: User

Sqlserver database high-version backup to a low version method, sqlserver Database

Problem description:Restored SQL statements in earlier versions (incorrect media cluster structure)


Cause: SQL version compatibility issues. The SQL server compatibility level is used for backward compatibility. SQL backup of a higher version is not compatible with a lower version.

Solution:
1. Use the script generation wizard in the Manager to generate scripts for other databases, tables, stored procedures, and other objects, and then execute these scripts under the SQL server of earlier versions ..
2. Data in the table is imported through dts/ssis.

Here we will introduce in detail the 1st development methods (taking restoring other databases of sql2008 to sql2005 as an example ).

1. First, we generate scripts corresponding to other databases in sql2008.


2. Click "Next" on the script generation page ".

3. in this step, click "advanced ", set "Data Type of the script to be written" and "develop scripts for server" to "SQL server 2005" and "Architecture and Data ".

 

4. "Next" and "Next" generate our script file.

 

5. Create a database with the same name as other databases in SQL server 2005.
6. Open the script and select another database.

7. Analyze and execute script query.
8. Complete.

The above is all the content of this article. I hope it will be helpful for your learning and support for helping customers.

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.