Brief introduction
This article explores the choice of the recovery model used by SQL Server 2008 and the various methods that can be used to back up a database, such as differential backups and things log backups. In addition, transaction log backups will be introduced, which makes the recovery model possible. backups, transaction logs, and recovery models are interconnected when one of the settings will affect the other option.
In previous article
Northwind to DISK =\\fileserver\shared\backup\northwind.bak
If you want to have a regular, scheduled backup, you need to use a logical backup device. A logical backup device can hold several database backups and reside on disk, tape, or named pipes. If you use a tape device, the tape drive must be on the same
configuration option.By default, when you compress a backup, a checksum (that is, the checksum option) is performed to detect the presence of media corruption. In the parameters of SQL Server, the default server is not enabled for backup compression.?
1 2 3) 4 5
select name, description, value_i
SQL Server itself has data import operations. However, if you want to import data from a backup file, you need to perform other operations. The following is an example.
There is already a DOE database on the SQL Server and there is a large amount of data in it. Now we are going to prepare another backup file A1.BAK (no
Sometimes in order to consider data security, we will back up the database, SQL Server backup format is generally bak end, but the cover is easy to problem, here is a simple introduction, the need for friends can be referred to sometimes full backup, when the restoration of the time that the database file does not allow restore, the solution:
can copy the datab
server|sqlserver| Backup | recovery | data | Database One, BACKUP database
1, open SQL Enterprise Manager, and then click Open Microsoft SQL Server
in the console root directory 2, SQL Server group--gt; double hit Open your server
Sometimes a full backup, when the restore time said the database file does not allow restore, the solution:
You can copy the database files directly, Xxx.mdf and XXX.LDF (you will need to stop the SQL Server service in the actual copy process)
It can be done with the sp_attach_db stored procedure.
Example
The following example attaches two files in pubs to the current
server| Backup | recovery | data | database
One, BACKUP database
1. Open SQL Enterprise Manager, click to open Microsoft SQL Server in the console root directory2, SQL Server group--> double hit Open your server--> double-click to
When Microsoft publishes SQL Server2005, it extends the ability to take advantage of filegroups by introducing partitions. In addition, we can now use SQL Server2005 engine to do online database recovery. So with all of these available features, how do you optimize your filegroups for backup and recovery? Let's look at the filegroups and how to set up a backup and recovery strategy when they are in use.
Ho
One, BACKUP database
1. Open SQL Enterprise Manager, click to open Microsoft SQL Server in the console root directory
2, SQL Server group--> double hit Open your server--> double-click to open the database directory
3, select your database name (such as Forum Database Forum)--> then click the Tools in the above menu
SQL Server itself has data import operations. However, if you want to import data from a backed-up file, you need to do another operation. Here is an example to illustrate.
There is already a DOE database on the SQL Server server, and there is a lot of data in it, and you are ready to import additional data from another back
server| Backup | data | database
Back up the database, for example:
BACKUP DATABASE Northwindto DISK = ' C:\Northwind.bak 'Restore the database, for example:
--Returns a result set consisting of a list of databases and log files contained in the backup setRESTORE filelistonlyFrom DISK = ' C:\Northwind.bak '
--Restore a
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.