SQL Server 2005 Notes

Source: Internet
Author: User

First, the Migration database

  1. Take the corresponding database offline

  2. Migrating the corresponding database files

  3. Execute the command above the master database to change the file directory of the corresponding database

Alert Database zxta Modify file
(
Name=zxta,filename= ' E:\NEW\zxta.mdf '
)
Alert Database zxta Modify file
(
Name=zxta.log,filename= ' E:\NEW\zxta_log.ldf '
)

4. Online

Note: You can also use the "detach-Attach" method for database migration

Second, database backup

Completion of the database log file will record the specific time and corresponding action records, you can restore to any point in time

The bulk-logged database log file does not log the time only, it cannot restore a specific point in time

Simple database log files are overwritten by write

This article is from the "Sim blog," Please make sure to keep this source http://mitac.blog.51cto.com/1081911/1564966

SQL Server 2005 Notes

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.