Recent Contributions
Join Stack Overflow
Want to help improve Microsoft SQL Server documentation?
Join the Stack Overflow community!
It only takes a minute, and your contributions will benefit developers forever.
Differences Between temporary table and table variable
I guess this is one of the best answers given on the topic and it deserves to be used as part of the documentation - dba.stackexchange.com/questions/16385/…
requested by gotqn 11.9k
Database Mirroring
How to setup database mirroring in synchronous, asynchronous and with a witness
requested by ughai 8,640
Log Shipping
SQL Server Log shipping allows you to automatically send transaction log backups from a primary database on a primary server instance to one or more secondary databases on separate secondary server instances. The transaction log backups are applied to each of the secondary databases individually.
requested by Edathadan Chief aka Arun 1,810
Sliding window partition
The concept of a sliding window scenario is to manage and keep the same number of partitions on a partitioned table over time. The best part of managing a sliding window scenario in SQL Server is its meta data operation, and hence it is significantly faster.
requested by Syed 143
Storage Engine
Information about how the data is stored in 8K pages, which types of pages exists, how does rows are stored inside a page, how does indexes are stored a page, an so on...
requested by lmcarreiro 566
Indexing strategies for SQL Server
It could be extremely helpful to have a general-purpose "Indexing Strategies" topic for SQL Server
requested by marc_s 489k
Collation
Rules that tell how to compare and sort strings: letters order; whether case matters, whether diacritics matter etc.
requested by Edathadan Chief aka Arun 1,810
Perform insert on linked database table and retrieve inserted ID from linked table
When having a linked table one does insert into [linkname].[database].[schema].[table] ( x, y) values ('x','y'). How to get the ID of that inserted row in that table.
requested by Tschallacka 9,853
Queries for performance monitoring and tuning
Often a developer seeks to tune the slow performing query/procedure. A frequently used queries for monitoring long running queries, blocking, lock escalations etc., would be handy.
requested by Solow Developer 846
SSMS Intellisense Cache to Update Schema Changes
Have you ever faced situation where you have just created or modified object but SSMS still shows the error. I quite often face this situation where I come across situation where my SSMS Intellisense Cache is not refreshed or updated.
requested by Edathadan Chief aka Arun 1,810
Dirty Read
A dirty read takes no notice of any lock taken by another process. The read is officially “dirty” when it reads data that is uncommitted. This can become problematic if the uncommitted transaction fails or for some other reason is rolled back.
requested by Edathadan Chief aka Arun 1,810
bcp Utility - Bulk Copy
The bcp utility bulk copies data between an instance of MicrosoftSQL Server and a data file in a user-specified format. The bcp utility can be used to import large numbers of new rows into SQL Server tables or to export data out of tables into data files.
requested by Edathadan Chief aka Arun 1,810
Commit & Rollback
Commit is used for the permanent changes. When we use Commit in any query then the change made by that query will be permanent and visible. Rolls back an explicit or implicit transaction to the beginning of the transaction, or to a savepoint inside the transaction. You can use ROLLBACK TRANSACTION to erase all data modifications made from the start of the transaction or to a savepoint.
requested by Edathadan Chief aka Arun 1,810
1 comment
Multiserver Queries
Query multiple servers at the same time in SQL Server , by creating a local server group, or a Central Management Server and one or more server groups, and one or more registered servers within the groups, and then querying the complete group. The results returned by the query can be combined into a single results pane, or can be returned in separate results panes.
requested by Edathadan Chief aka Arun 1,810
Data Compression
Row and page compression for rowstore tables and indexes, and supports columnstore and columnstore archival compression for columnstore tables and indexes. For rowstore tables and indexes, use the data compression feature to help reduce the size of the database.
requested by Edathadan Chief aka Arun 1,810
predicate and Seek predicate
Seek Predicate is the operation that describes the b-tree portion of the Seek. Predicate is the operation that describes the additional filter using non-key columns. Based on the description, it is very clear that Seek Predicate is better than Predicate as it searches indexes whereas in Predicate, the search is on non-key columns – which implies that the search is on the data in page files itself.
requested by Edathadan Chief aka Arun 1,810
CREATE PROCEDURE FOR GENERATE Dynamic INSERT AND UPDATE QUERY.
Like SP_helptext we create procedure for Dynamic Insert / update query
requested by Singh Kailash 374
Dynamic SQL Pivot
Would be great to get the basic syntax for a dynamic SQL pivot (including with multiple joined tables).
requested by Admanb 1