server| recovery in SQL Server 7 The tedious process of creating a new device to rebuild a database is canceled because MS has redesigned the way the database files are stored. New storage format, a database consisting of two files, MDF database files and LDF log files. So we can copy the two files of the database you want to back up when we reload the machine, and then restore it after reinstalling.
A stored procedure that provides this type of recovery in SQL Server.
Add a database to the system, specify the database name in dbname, filename_n the file and log files for the specified database. For example, I have a Voogiya library that stops SQL Server service backup VOOGIYA_DATA.MDF,VOOGIYA_LOG.LDF, starts SQL Server, deletes the library, and then copies the two files to the SQL Server data directory , execute the following statement in Query Analyzer:
This command, like the one above, allows the log file SQL Server to be physical_name as long as the physical file name of the library is written on it. This stored procedure is run to execute the following stored procedures:
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.