ix_testtable_col1 on TestTable REBUILD with (data_compression = ROW);
SQL Server 2008 also provides an object size named Sp_estimate_data_compression_savings stored procedure to help DBA estimate the activation compression option.
The principle of using data compression:
For row compression, SQL
as follows:The above code can get a lot of information about the database, and in the code we did not write a line of SQL statements, and in the previous week, the public wrote a blog "in. NET based on SQL Server system tables to obtain database management information," In order to find this information, the week public is a lot of data to know the wording of th
Getting Started with SQL Server replication (i) Introduction to----replicationIntroductionReplication in SQL Server (Replication) is one of the core features of SQL Server high availabi
Tags: including car summary Repeat stored procedure the simplest Lin view introOriginal: Getting Started with SQL Server replication (i) Introduction to----replicationBrief introductionReplication in SQL Server (Replication) is one of the core features of
portals are inserted. Deleting a portal from the index, including removing it from the clustered index, may delete the entry immediately. You may also create a ghost record to make the index entry a tombstone. Ghost exists only in the leaf layer. SQL Server will not delete ghost record until after the transaction has completed. The update index may be updated in place immediately, or it may be inserted aft
Label:Text: Toward Dba[mssql] Improve access performance of databases from the perspective of SQL statementsRecently the company has come to a very tiger DBA 10几 years of experience here is called Cai Teacher. Let us share the precious wealth that Cai Lao has brought to us, with the consent of our Chua. Welcome other DBAs to shoot bricksDirectory1. What is the ex
Tags: SQL Server exec sp_executesqlSQL Server Introduction to the use of exec and sp_executesqlMSSQL There are two commands for dynamically executing SQL statements, exec and sp_executesql, and generally, sp_executesql has the advantage of providing an input-output interface
Tags: products name with error DEM query statement drop supplier objectText: "Translated" SQL Server Introduction stage eighth: Unique indexIndex design is a relatively important part of database design, the performance of the database is a crucial role, but the design of the index is not so easy things, performance is not so easily acquired, a lot of technical s
indexes frees the disk space that the index consumes. After you disable nonclustered indexes, all queries are the same as no indexes. Disabling a clustered index frees the space occupied by non-leaf layers in the index. After you disable a clustered index, the table cannot be queried and updated. Because disabling an index is accompanied by a space release, processing requires a small amount of processor time and log file IO. The primary reason to disable indexing is to save some disk space whe
execution plan immediately Results: Right-click on the query plan icon above you can see the details below, hit index, I/O consumption information, CPU consumption, query results line number, very intuitive can see the various parameters 3. Learning routeLearn the various icon meanings in the execution plan, icon learning Address: https://msdn.microsoft.com/zh-cn/library/ms191158 (v=sql.120). aspx Plus some of the official Microsoft Learning Doc
trace output file. By default, the default trace log is stored in the \mssql\log directory as a rolling update trace file. The base file name for the default trace log file is log.trc.When we open the default trace file with Profiler, we can see that there are 7 types of captured events from the properties:? Database? Errors and Warnings? Full-text? Objects? Performance? Security Audit? ServerAlso, all optional columns for each subclass event are selected.650) this.width=650; "title=" clip_imag
in T-SQL, or it can be referenced. NET to write the method within the component (Assembly).When a DML trigger executes, it can refer to the deleted and inserted temporary tables created by the SQL Server engine, and when the DDL trigger executes, it can call the EVENTDATA () system function to obtain the system information associated with the execution of the DD
Label:1. Batch Processing
Batching refers to a group of statements that contains one or more T-SQL statements that are sent from the application to the SQL Server server at once. The SQL Server
Label:I. Introduction of the Database Database: Divided into hierarchical type, network type, relational type. Now it's usually a relational type. SQL Server is a large database software that is used to manage and modify databases. DB DBMS (Database management System) DBS (database system). The mainstream database: Sqlserver,oracle,db2,sybase,access,foxpro
。">is a literal constant value to be assigned@variable_name for use with the OPTIMIZE for query hint.literal_constant 只在查询优化期间使用,在查询执行期间不用作 @variable_name 的值。">Literal_constant is used-during query optimization, and not as the value of @variable_name during query execution. literal_constant can be any of the SQL Server system data types represented by any of the available literal constants. ">literal_consta
Case when usageSELECT L.lettertype, u.realname from T_lettersrecord as L, t_user as U WHERE (case when l.lettertype = ' Cadre Letter of introduction ' and U.userid = ' 1 ' THEN1 whenl.lettertype = ' Cadre Letter of introduction ' and u.userid Operation Result:3. Use of GROUP by caseSELECT Case when salary Operation Result:This article brief
connection parameter, server fills in SSMs after that name (general-name).2. Using Navicat Premium--I recommendNavicate provides the ability to transmit data, which can be used as an intermediary operation node to copy a database to another library.Simple operation, the general interface to select the libraries and tables to be synchronized, the advanced interface to remove the creation of the index, check the error continue, other basic default.Pay
them by the last update time. Run the following statement: SELECT * from sys.objects where type in (' U ', ' V ', ' P ') Order by modify_dateThis statement identifies all the user tables, views, and stored procedures in the database and sorts them by time, so that you can see others recently added and modified those database objects. Sys.objects does not contain triggers, and triggers are in sys.triggers. There are similar sys.tables,sys.views and so on. Information_schemaIf we want to quickly
uses constraint definitions to generate high-performance query execution plans.Data integrity ClassificationIn SQL Server, data integrity can be divided into the following, depending on the database objects and scopes that are acting on the new data integrity measures:Entity integrityEntity integrity The simple thing is to think of each row in a table as an entity. Entity integrity requires the integrity o
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.