successful repair ( turn off other query windows if an error occurs )
ALTER DATABASE Bigdata_testinfo set Multi_userYou refresh the database and you find out, okay ~
Scared to the point, quickly check the data there is no problem (formerly)
The size of the wood is also changed
Expand:
Someone attached to the time found ... Tips for rejecting xxx
Uh.. is actually no
sorting rule is specified, the default sorting rule of the SQL server instance is assigned as the database sorting rule. For example, to add two 5 MB log files to the database student, the creation code is as follows: Alter database studentadd log file (name = studentlog2, filename = 'C: /program files/Microsoft
An error occurred while attaching the database to SQL Server. The error message is as follows:
Error 0: Unable to load DLL Microsoft prompts you to operate SQL database at will to avoid unnecessary trouble or the DLL. Open the query analyzer and execute the following statement:
Drop procedure sp_oacreateDrop procedur
There are a number of reasons why a database can be questioned, and the steps used for different problems will vary, and the following steps do not apply to all cases, but include some basic steps.Database doubt is that the database is in an inconsistent state, there is likely to be data loss. We recommend that you check for DBCC CHECKDB without errors before you make a
methods of emptying SQL Server log files from the 10thOne way: Empty the log.1. Open Query Analyzer, enter command dump TRANSACTION database name with NO_LOG2. Open Enterprise Manager again--right click on the database you want to compress--all tasks--shrink the database--
Database Log Files
Shrink database logs in simple recovery mode. The size unit of @ database_name_log after the contraction is M.
Backup log @ database_name with no_log
Dbcc shrinkfile (@ database_name_log, 5)
12. How to analyze SQL Server SQL statements:
Set statistics tim
operations are the same as if each member server has a copy of the original table, but in fact each server has only one member table and a distributed partition view. The data location is transparent to the application.
11. Rebuild the index DBCC reindex, DBCC indexdefrag, shrink data and log DBCC shrinkdb, and DBCC shrinkfile. set automatic log shrinking. for large databases, do not set Automatic database
Microsoft ole db provider for SQL Server Error '80040e14'
The log of database 'mis1' is full. Back up the transaction logs of the database to release some log space.
A simple method is used to contract logs:
1. backup log... with no_log2. shrink the database
OK, synchronizat
SQL Server database email, SQL Server database
The mail sending function provided by SQLserver allows you to easily send information in the database to relevant personnel. For example, you can send the warning information to the management personnel in conjunction with the m
Translated from: http://www.zccode.com/forum.php?mod=viewthreadtid=637extra=page%3D1NET Fox 6603 Special Database Weight Loss effect script (18G into 300M) is as follows:Copy script statements to SQL Server new query, execute, clear redundant log/** Database Super Weight loss, 18G can become 300M.*/--Truncate The log by changing the
SQL Server database backup details and precautions, SQL Server
SQL Server backup
Preface
Why is backup required? The reason is simple-for restoration/recovery. Of course, if you do not back up data, you can recover the lost files through disk recovery. However, SQL Server is
Provide a sophisticated method of compressing the log and database files as follows:
1. Clear the Log
DUMP TRANSACTION Library name with NO_LOG
2. Truncate the transaction log:
BACKUP LOG database name with NO_LOG
3. Shrink the database file (if not compressed, the database
the database you want to compress -- all tasks -- contract database -- contract file
-- Select log file -- select to shrink to XXM in the contraction mode. Here, a minimum number of MB allowed to be shrunk is displayed. Enter this number directly and click OK.
-- Select data file -- select to shrink to XXM in the cont
How to use SQL Injection for database explosion, SQL Injection for database explosionWhat can SQL injection do?
I introduced the basic principles and experimental methods of SQL Injection in "
The database administrator sometimes needs to control the size of the file, may choose to shrink the file, or some data file condition to be deleted from the database.At this point we are going to use the DBCC SHRINKFILE command, the script for this command is:DBCC shrinkfile ( | file_id} {[, emptyfile] | [[, Target_size] [, {notruncate | TRUNCATEONLY}]] }) [with NO_INFOMSGS]Because DBCC SHRI
Execute SQL Server database backup and SQL database backup using Windows batch processing commands
Create mybackup. bat and enter the following content to directly run the script to start automatic database backup. You can also add the script to the windows Task Plan for exe
In real-world development, we often encounter the need to transform data into SQL, or import SQL data from a database table into Excel. The code is as follows: codeusing system;using system.collections.generic;using system.componentmodel;using System.Data;using System.drawing;using system.linq;using system.text;using system.windows.forms;using GemBox.ExcelLite;us
T-SQL statement to modify the logic name, database name, and physical name of the SQL Server database, t-sqlsql
This example describes how to modify the logical name, database name, and physical name of the SQL Server
SQL Server database optimization practice (III), SQL Server
Preface:
This chapter describes how to compress logs and tables.
Shrink log files
-- Exploitation
Exec sp_spaceused
Statement to view the database size
-- Right-click Databas
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.