SSMs is somewhat convenient for us to do some common things. But sometimes it's not so impersonal. In particular, error messages.Today, I encountered an error while doing a database restore: The specified conversion is not valid.
1. Always have backup bak file before restore2. When restoring data, prompt the following information:Once the database is accessed, disconnect all connections.The disconnection method is as follows:Click to open linkThen, then found the wood has
Restore Database
Enterprise Manager
--Right Key "database"
--All Tasks
--Restore Database
--"Revert to Database Library" to enter the restored database name
--Restore Select "From Device"--Select device--add--Add your backup file--OK, back to
General processing steps after the collapse of MSSQL database system
Situation Description:
SQL Server 2000 crashes, reinstalling the database.
There are the following preparations:
1, full backup of three system libraries (Master,msdb,model):
22
Data | database
Situation Description:
SQL Server 2000 crashes, reinstalling the database.
There are the following preparations:
1, full backup of three system libraries (Master,msdb,model):
22 User Database (USER01,USER02) backup (full backup in
My colleague called to say he was eager to restore the archive logs in the production database. The system environment is 10.2.0.5 and RAC. the nfs sharing is established for archived logs on node1, but not for node2.
My colleague called to say he
The reason is roughly that the primary key must be unique, that is, where the database may exist and where the restored database is duplicated, a restriction that Foreign keys should is uniquely named throughout the DB, an effective way is to clear
To restore a database under SQL SERVER 20051, new database A, right to restore the database, when the target database is a, select backup
File B_db_201311040200.bak, prompt on restore "database backup in Backup set is different from existing a
Recovery | data | database
Database: MSSQL SERVER 2000 Enterprise Edition
Problem Description: Database suspect. The database backup file is corrupted. The database physical file (*. MDF), to use the database add-on function, to attach a
A. Causes of data loss:Program errorHuman errorComputer errorDisk failedDisasters (such as fire, earthquake) and theftB. What is backup?Backup creates a copy of data.Used to restore and restore data after system failureFile copy is not equal to
The. mdf file is a major data file in the database. it is the starting point of the database and points to other parts of the database file. When the computer fails and the database cannot be backed up, you can only use SQL commands to attach the.
Method One
We use phpMyAdmin to back up the database before installing the MySQL database, then we can import it directly after installation.
Method Two
1, first in the operation of the input services.msc, to find a MySQL service, to stop it;
2,
server|sqlserver| Data | database
The database appended to the SQL2005 can no longer be appended to the 2000
If you want to revert to SQL2000, the way I'm currently using it is to generate a database script in SQL 2005,
If all data is checked:
After backing up the database file in BAK format from the database, there is always a hint of insufficient space when the local database is welcomed.This is typically a database file backed up from a 64-bit computer and restored to a 32-bit sqlsever.
Today, when restoring the database, in SSMs, restore the database with the following code:RESTORE DATABASE [TEST] from DISK = N ' D:\TEST. BAK ' with FILE = 1, MOVE n ' TEST ' to n ' C:\Program Files\Microsoft SQL
--Get only the database name and the last restore timeSELECTSdb. Name asDatabaseName,COALESCE(CONVERT(VARCHAR( A),MAX(Bus.backup_finish_date),101),'-') asLastbackuptime fromsys.sysdatabases SDB Left OUTER JOINMsdb.dbo.backupset Bus
Error when restoring a database backed up from SQL Server 2005 in the SQL Server 2008 release: "The database backup in the backup set is not the same as the existing ' * * * ' database. RESTORE DATABASE is terminating abnormally. (Microsoft SQL
Error when restoring a database backed up from SQL Server 2005 in the SQL Server 2008 release: "The database backup in the backup set is not the same as the existing ' * * * ' database. RESTORE DATABASE is terminating abnormally. (Microsoft SQL
found a database on the Internet, in their own SQL Server 2008 R2 restore, there is an error, it seems that the version is different.
The restore was unsuccessful, the database was canceled, but it was in a "suspicious" state and could not be
When restoring a database today, restore the database in SSMs with the following code:
RESTORE DATABASE [TEST] from DISK = N ' D:\TEST. BAK ' with FILE = 1,Move N ' TEST ' to n ' C:\Program Files\Microsoft SQL Server\mssql10_50.mssqlserver\mssql\
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.