The following error occurred while the source database was also (see figure below for details):
System.Data.SqlClient.SqlError: In the ' C:\Program Files\Microsoft SQL Server\mssql.1\mssql\businessdb.mdf ' Try '
Backup data:
The code is as follows
Copy Code
Mysqldump-u User name-p password database name > Xx.sql
When the volume of data is large, you can use gzip compression
The code is as follows
Copy
We will certainly encounter the backup database in the course of running the project, restore the database situation, we generally use two ways to deal with:1. Import and export backup data using into outfile and load data infileThe advantage of
Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->1 use master2 go3 -- create a backup device on the hard disk4 exec sp_addumpdevice 'disk', mybackupfile,5 'C: \ mybackupfile. Bak'6 -- delete the
MSSQL error tableError Code 3000-3999Error severity description (message text)3009 16 failed to insert backup or restore history/detailed records in the MSDB database. This may indicate a problem with the MSDB database. The backup/restore operation
--Full restoreRESTORE DATABASE Demodata from DISK = N'D:\Backup\demoData.bak'; RESTORE DATABASE {database_name | @database_name_var}[From [,... N]][With{[RECOVERY--Specifies that the restore operation rolls back all uncommitted transactions
Application Scenarios:Linux Server A runs the MySQL service and opens the Log-bin (Log-bin = mysql-bin) and specifies the Server-id (Server-id = 1);Linux Server B also in the same manner as Server A (not the same can, refer to the following "note")
Perform full recovery: the key data file of the SYSTEM is lost in ARCHIVELOG mode. If a data file is lost or damaged and the file belongs to the SYSTEM or UNDO tablespace, perform the following steps: 1. the instance may or may not be automatically
Operation Method: first install SQLServer2005, and remember the user name and password you set during installation. The following describes how to restore the database file epdmdb20101008.bak backed up by SQLServer as an example.
① Open SQLServer2005
How to convert a backup SQLServer database to an SQLite Database: first install SQLServer2005 and remember the username and password you set during installation. For more information, see, this article may be helpful to you
How to convert a backup
SQL2000 uses backup to back up the database, but when restoring with the restore command, it can be restored with a Bak file that is backed up only once. However, if it is a Bak file that stores several backup data, an error occurs, why is an error?
DEPT is used as an example to illustrate the problems encountered during database backup and Restoration:
Backup database dept to disk = 'd: \ deptbackup. Bak --- no problem with Data BackupRestore database dept from disk = 'd: \ deptbackup. Bak '-
Backup and recovery of databases 1. Open SQLServerManagementStudio → Database: practice_20.gl is the database we need to back up. 2. Right-click the database to be backed up. 3. Click "delete" and then "add". 4. Select the backup path, and enter the
Use sqlcmd, osql, and iSQL backup and restoration of sqlserver
-- Sqlcmd, new sql2005 Tool1. Backup"C:/program files/Microsoft SQL Server/90/tools/binn/sqlcmd. EXE "-S. /sqlexpress-U sa-P 000000-D master-Q "backup database test to disk = 'C:/AA/AAA.
1. Back up/restore the system database in the SQL Server database. The system information is stored in the system database. The main system databases include:
Master-controls user database and SQL server operations as a whole. After creating any
SQL Server data encryption and decryption: migrate the database protected by TDE to another instance (2), sqlservertde
-- Understand TDE-https://technet.microsoft.com/zh-cn/library/bb934049 (v = SQL .105). aspx TDE performs real-time I/O encryption
Operation Method: first install SQLServer2005, and remember the user name and password you set during installation. The following describes how to restore the database file epdmdb20101008.bak backed up by SQLServer as an example.
① Open SQLServer2005
Original: SQL Server Enterprise Platform Management Practice reading notes--about how SQL Server databases are restoredThis article is the backup method of the previous article, this article is about the restore scenario, in SQL Server more than 2005
Preface
Accustomed to the oracle of the Plsqldev, feel pgadmin This tool is too difficult to use, decisively changed navicat for Postgres, indeed much better, but the backup to restore the database across multiple connections is not very useful,
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.