2016-08-23 (first published: 2015-05-01)
1,510 reads
2016-08-23 (first published: 2015-05-01)
1,510 reads
2013-04-17 (first published: 2013-04-03)
1,491 reads
2013-03-19 (first published: 2013-03-01)
1,072 reads
Script to generate script to detach or attach user databases
2013-02-15 (first published: 2013-01-29)
6,077 reads
Script to reorganize all indexes on all tables in user databases
2013-02-14 (first published: 2013-01-31)
3,275 reads
2013-02-06 (first published: 2012-12-27)
1,857 reads
Changes the database compatibility level of all databases to the given level.
2013-01-31 (first published: 2013-01-07)
953 reads
2012-12-03 (first published: 2012-11-07)
2,047 reads
2012-10-04 (first published: 2012-04-10)
2,040 reads
2012-07-25 (first published: 2012-07-12)
2,531 reads
When I put together the invitation for T-SQL Tuesday #202, I wasn't sure what...
By Steve Jones
My life has some crazy travel stretches for sure. Between speaking, office visits, customer...
In Part 1, we saw how ‘Vamana’ represents vectors as nodes, connects them with...
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