Multiple query plans for the same query?
A while back i was creating a stored procedure to be used for pulling data from the SQL Server into...
2011-10-25
13,741 reads
A while back i was creating a stored procedure to be used for pulling data from the SQL Server into...
2011-10-25
13,741 reads
One of the main goals with this blog is to write stuff when we learn / discover new things or smarter...
2011-10-18
1,485 reads
We all know that SQL Server loves memory, and in my opinion SQL Server can never have to much RAM....
2011-10-11
688 reads
Last week I blogged about how to get help identifying possible missing indexes by using some of the DMV’s provided...
2011-10-04
814 reads
One of the most common things I encounter when asked to help with performance problems, is wrong or inadequate indexing....
2011-09-27
1,417 reads
A few weeks back we did a blog post about a file grow bug that has been fixed with SQL...
2011-09-20
1,635 reads
We have all been in a situation where we had to get the last day of the month with T-SQL....
2011-09-13
5,781 reads
Three months back in this blog post – T-SQL Enhancements in SQL Server Denali (2011) – we promised to do a series...
2011-09-06
997 reads
IFF Function
If you are an old Access or Excel “developer” you know this one. This is not a function I...
2011-09-06
2,981 reads
A couple a weeks ago I blogged about a few of the enhancements in the OVER clause, and now I...
2011-08-30
4,632 reads
By Steve Jones
Thanks to everyone that attended my sessions at VS Live San Diego yesterday. It...
By Steve Jones
I was creating a question on sp_readerrorlog and realized that this procedure is different...
By SQLPals
Why sys.fn_dblog Is Undocumented And Why It's Still There Why sys.fn_dblog...
Comments posted to this topic are about the item Implementing Type 4 Slowly Changing...
Comments posted to this topic are about the item The Disabled Index
Comments posted to this topic are about the item Server-Level Table sizes
I run this code on SQL Server 2022.
CREATE TABLE Drink
(
drinkid INT NOT NULL
CONSTRAINT DrinkPK PRIMARY KEY CLUSTERED,
drinkname VARCHAR(20),
rating NUMERIC(2, 1)
)
GO
INSERT INTO Drink
(
drinkid,
drinkname,
rating
)
VALUES
(1, 'Margarita', 4.5),
(2, 'Mojito', 4.3),
(3, 'Old Fashioned', 4.7),
(4, 'Martini', 4.4),
(5, 'Cosmopolitan', 4.2)
GO
ALTER INDEX drinkpk ON dbo.drink DISABLE
GO
SELECT * FROM dbo.Drink
GO
What is the result? See possible answers