tempDB contention
What is tempDB contention? From the outside looking in, tempDB contention may look like any other blocking. There are two types of contention that tends to plague tempDB’s, especially when the tempDB...
View ArticleSystem Functions – $partition
Returns the partition number into which a set of partitioning column values would be mapped for any specified partition function. Syntax [ database_name. ]...
View ArticleSet Operators : Except and Intersect -Tsql
SQL Server provides the following set operators. Set operators combine results from two or more queries into a single result set 1) Intersect and Except 2) Union Today in this post we will learn...
View ArticleHow find the last inserted identity value or values in the SQL server
CREATE TABLE [dbo].[CHECKIDENT]( [ID] [int] IDENTITY(1,1) NOT NULL, [date] [date] NULL, [descp] [varchar](10) NULL ) ON [PRIMARY] GO INSERT INTO DBO.CHECKIDENT(DESCP) VALUES (‘CHECK’) SELECT...
View ArticleHow to insert explicit values into the identity columns in SQL server
SET IDENTITY_INSERT [ database. [ owner. ] ] { table } { ON | OFF } Msg 544, Level 16, State 1, Line 1 Cannot insert explicit value for identity column in table ‘CHECKIDENT’ when IDENTITY_INSERT is...
View Article