Block Select/Replace (Day 11)
While Regular Expressions lets us work with text not cleanly formatted, if you are trying to work with text that...
2018-01-11
243 reads
While Regular Expressions lets us work with text not cleanly formatted, if you are trying to work with text that...
2018-01-11
243 reads
Have you ever downloaded a script from an internet site, only to find that there are extra blank lines between...
2018-01-10
460 reads
Have you ever had to run a query on multiple servers? You could connect to each server one by one...
2018-01-09
455 reads
Have you ever had a script where you needed to run parts of it on different instances of SQL Server...
2018-01-08
444 reads
Since SSMS is built upon Visual Studio, many of the features available to Visual Studio are also available to SSMS....
2018-01-08 (first published: 2018-01-01)
3,247 reads
Have you ever had a long script that you are trying to scroll through? Do you wish that you could...
2018-01-06
580 reads
So you’re working with a query that you have loaded from a saved file. And now you want to open...
2018-01-05
375 reads
Have you ever been working in SSMS where you need to frequently access one particular script, but you are spending...
2018-01-04
422 reads
Have you ever wanted to have two different queries open up at the same time where you could see them,...
2018-01-03
334 reads
SQL Server 2017 lets you solve parameter sniffing problems - Automatically!
2018-01-02 (first published: 2017-11-20)
2,725 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