, after shrinking the @database_name_log size unit m
Backup LOG @database_name with NO_LOG
DBCC SHRINKFILE (@database_name_log, 5)
12. Methods for analyzing SQL Server SQL statements:
Set STATISTICS Time {on | off}
Set STATISTICS IO {on | off}
Graphical display of query execution plans
In Query Analyzer-> Query-> show estimated evaluation plan (D)-ctrl-l or click on the graphics in the toolbar
Text mode dis
@database_name_log size unit mBackup LOG @database_name with NO_LOGDBCC SHRINKFILE (@database_name_log, 5)
12. Methods for analyzing SQL Server SQL statements:Set STATISTICS Time {on | off}
Set STATISTICS IO {on | off}
Graphical display of query execution plansIn Query Analyzer-> Query-> show estimated evaluation plan (D)-ctrl-l or click on the graphics in the toolbarText mode display Query execution plan
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 ... T
. How to analyze SQL Server SQL statements:Set statistics time {on | off}Set statistics io {on | off}Display query execution plan in graphical modeIn the query analyzer-> query-> display estimated evaluation plan (D)-Ctrl-L or click the graph in the toolbarDisplay query execution plan in text modeSet showplan_all {on | off}Set showplan_text {on | off}Set statistics profile {on | off}13. When an inconsistenc
mode database log, after shrinking the @database_name_log size unit m
Backup LOG @database_name with NO_LOG
DBCC SHRINKFILE (@database_name_log, 5)
12. Methods for analyzing SQL Server SQL statements:
Set STATISTICS Time {on | off}
Set STATISTICS IO {on | off}
Graphical display of query execution plans
In Query Analyzer-> Query-> show estimated evaluation plan
database log fileShrink the simple recovery mode database log, after shrinking the @database_name_log size unit mBackup LOG @database_name with NO_LOGDBCC SHRINKFILE (@database_name_log, 5)12. Methods for analyzing SQL Server SQL statements:
Set STATISTICS Time {on | off}Set STATISTICS IO {on | off}Graphical display o
file to be restored.D. Start the database server. In this case, the database test status is "Suspect ". At this time, you cannot perform any operations on this database.E. Set the database to allow direct operation of system tables. In SQL Server Enterprise Manager, right-c
mdf file to be restored.D. Start the database server. In this case, the database test status is "Suspect ". At this time, you cannot perform any operations on this database.E. Set the database to allow direct operation of system tables. In SQL Server Enterprise Manager, rig
Tags: SQL version data type Java Build database nbsp ERP software MDFData type SQL2008R2 database data capacity GB fault type in the Ransomware virus,. The extension was changed to arrow repair result client sent to encrypt database, using excellent
you just generated, and overwrite the generated database data file test_data.mdf with the MDF file to be restored.
D. Start the database server. In this case, the database test status is "Suspect ". At this time, you cannot perform any operations on this database.
E. Set th
mdf file to be restored.D. Start the database server. In this case, the database test status is "Suspect ". At this time, you cannot perform any operations on this database.E. Set the database to allow direct operation of system tables. In SQL server enterprise manager, rig
SQL Study Notes (19) ----------- about MySQL database optimization and mysql database Optimization
A mature database architecture is not designed with high availability, high scaling, and other features at the beginning. It is gradually improved with the increase in the number of users. This blog post focuses on the pr
same as what I said in my article (Note the font color I used):Execute sp_configure to allow the system table to be updated and then enforce the configuration with the RECONFIGURE with OVERRIDE statement;Database reset emergency mode;Perform a sp_resetstatus to close the database, but leave the other options of the database intact (only system administrators can
log file named 'C:/program files/Microsoft SQL Server/MSSQL/data/test_log.ldf.
However, if your database files are copied from other computers, the above method may not work.You may get an error message similar to the following.
Server: Message 1813, level 16, status 2, Row 1Failed to open the new database 'test '. Create da
(@ database_name_log, 5)12. How to analyze SQL Server SQL statements:
Set statistics time {on | off}Set statistics Io {on | off}Display query execution plan in graphical mode
In the query analyzer-> query-> display estimated evaluation plan (d)-Ctrl-l or click the graph in the toolbar
Display query execution plan in text modeSet showplan_all {on | off}
Set showplan_text {on | off}Set statistics profile {on
process in the preceding log, which is the same as that in other relational databases, SQL Server writes transaction logs to all database behaviors first, then modifies the data in the memory, and then writes the data to the hard disk (Lazy write) as appropriate through a background process ), therefore, when the database is running, the data in the disk is not
\ data \ test_log.ldf.
However, if your database files are copied from other computers, the above method may not work. You may get an error message similar to the following.
Server: Message 1813, level 16, status 2, Row 1
Failed to open the new database 'test '. Create database will be terminated.
Device activation error. The physical file name 'd: \ test_log.ld
, right-click, select Properties, and select the Allow direct modifications to system directories on the server Settings page. You can also use the following statement to implement it.Use masterGosp_configure ' allow updates ', 1GoReconfigure with overrideGoF. Set test to Emergency Repair modeUpdate sysdatabases set status=-32768 where dbid=db_id (' test ')You can see in SQL Server Enterprise Manager that t
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.