How "SQL Server" deploys the local SQL Server servers to a remote server

Source: Internet
Author: User

Here the author uses SqlServer2012, native and remote Environment are Win7.

1. Select the database you want to deploy, and right-click the task to detach. Check Delete connection.

2. Now I can't see the data in the table on the left.

3. Find the location of the detached database locally, which is the location specified when the reader establishes the database. For example, the author's position is "D:\databaseContainer\moveCheck"

4. In this there are two database files, with _log.ldf as the log, which is generally not required. Make a copy of the required database to a remote server. For the convenience of file management, you can refer to other database files under that folder, it is placed under that folder, if there is a database with the same name, need to be replaced. In the case of paste replacement, it is important to delete the connection (the same step as the first step) in the SQL Server database, otherwise the error message "Replace the file in use failed" is reported.

5. Then right-click the database in SQL Server and select Attach. Specifies the location of the database, specifying that the details of the database will appear in the details after completion. If the log information for the data is present, select Delete it.

Then click OK, and after the database is refreshed, the database is deployed to the remote server.

How "SQL Server" deploys the local SQL Server servers to a remote server

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.