Question of the Week -08/04/2014
Suppose we need to find out the name of all the months in a given year (Year will be given...
2014-04-08
505 reads
Suppose we need to find out the name of all the months in a given year (Year will be given...
2014-04-08
505 reads
Question:- How many NULL value allowed in a column in which Unique constraint is defined in SQL Server?
Options:-
a) 1
b) 2
c) More...
2014-04-08
594 reads
I hope you’re hungry for another SQL Snack! In fact, this will be one of a series of snacks (dare...
2014-04-08
642 reads
This month’s T-SQL Tuesday which is now at a staggering number 53, can it really have been going that long?...
2014-04-08
834 reads
I’m trying out a new web site from Microsoft called Curah! that is all about curation. Curation is basically what...
2014-04-08
807 reads
When working with SSIS, you’ll often find the need to read the contents of a flat file to a variable,...
2014-04-22 (first published: 2014-04-08)
7,582 reads
When I first started poking around in SQL Server 2012, I noticed an extended event session called “system_health” was created...
2014-04-21 (first published: 2014-04-08)
4,067 reads
Why so serious? If you ask anyone who knows me they will tell you I’m not a terribly serious person....
2014-04-08
394 reads
Why so serious? If you ask anyone who knows me they will tell you I’m not a terribly serious person....
2014-04-11 (first published: 2014-04-08)
1,632 reads
As a child/pre-teen/teenager/young adult, OK, most of my life, I’ve been labeled as “serious” or “grumpy”. Maybe I deserve it...
2014-04-11 (first published: 2014-04-08)
1,499 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