REBLOG: Twas the Week After Christmas.....
Holiday Greetings to all you DBA's and SQL Server professionals! This blog goes out to all of you who are on-call...
2013-12-24
947 reads
Holiday Greetings to all you DBA's and SQL Server professionals! This blog goes out to all of you who are on-call...
2013-12-24
947 reads
2013-12-24
585 reads
This year has been so awesome!! I hope to do better in the coming year and be able to share...
2013-12-24
466 reads
On the first day after release my developer gave to me
a performance problem on a crucial query
On the second day...
2013-12-24
798 reads
I’ve been blogging for a couple of years now and although I’ve never been a prolific blogger (and never will!),...
2013-12-23
577 reads
In my IT career, one of the things I have found that sets me apart is my ability to write....
2013-12-23
394 reads
This is the final training give away for a free month of Pluralsight! A comment on this post gets your...
2013-12-23
472 reads
Friday (Dec 20, 2013) the Google Doodle was a crossword puzzle. I was curious so I clicked and yes, it...
2013-12-23
711 reads
One point of confusion I see with Power Query is some people believe Power Query adheres to the Excel limit...
2013-12-23
1,446 reads
I love SQL Prompt, and think it’s a great productivity tool. Even before I worked at Red Gate, I love...
2013-12-23
2,104 reads
Creating a Fabric workspace takes about 30 seconds. Restructuring workspaces after people have built...
By Steve Jones
It’s a small change, but a handy one. Flyway Desktop (FWD) now includes the...
By Steve Jones
Software is hard. While I love our Lucid Gravity, I realize that they are...
Comments posted to this topic are about the item Adding new column with DEFAULT...
Comments posted to this topic are about the item Advanced Deployment Scenarios: Stairway to...
Comments posted to this topic are about the item You Need a DBA Pipeline
Which number did the two COUNT(*) return:
DROP TABLE IF EXISTS #tmp CREATE TABLE #tmp (id INT NOT NULL) INSERT INTO #tmp (id) SELECT gs.value FROM GENERATE_SERIES(1, 5) AS gs ALTER TABLE #tmp ADD my_value INT NOT NULL CONSTRAINT df_tmp_my_value DEFAULT 1 SELECT COUNT(*) FROM #tmp AS t WHERE my_value = 1 ALTER TABLE #tmp DROP CONSTRAINT df_tmp_my_value ALTER TABLE #tmp ADD CONSTRAINT df_tmp_my_value DEFAULT 2 FOR my_value SELECT COUNT(*) FROM #tmp AS t WHERE my_value = 1See possible answers