NetFlix and Null
There are some progressive companies out there, and I think they are doing some very interesting things with how they...
2010-08-30
1,572 reads
There are some progressive companies out there, and I think they are doing some very interesting things with how they...
2010-08-30
1,572 reads
I have presented you with a couple of easy puzzles in the last few posts. So, let's step it up...
2010-08-29
479 reads
Over the many years that I’ve been dealing with SQL Server, I’ve always been told and read about how using...
2010-08-29
615 reads
In a previous post, I showed you how one could Restart, Stop and Start the services for an instance of...
2010-08-29
13,397 reads
Sometimes you may need to restart your instance of SQL Server. You should rarely do this on Production boxes, but...
2010-08-29
493 reads
First and foremost, I want to thank everyone who attended my presentation today. It got off to a late start due...
2010-08-28
428 reads
If you are intending to take any Microsoft Certification tests soon, you are in luck, because Microsoft has recently introduced...
2010-08-28
1,287 reads
Puzzle #6 should not have presented too much of a challenge, it's intentions were to introduction you to the ORDER...
2010-08-27
501 reads
This was written for something fun on a Friday, but it’s still interesting for coffee talk anytime – what superhero would...
2010-08-27
618 reads
Ran across this in my weekly browsing, Formufit sells furniture grade PVC. I think I’m not quite clear on the...
2010-08-27
1,168 reads
By Steve Jones
I use ConEmu for my terminal interface. I’m still on Windows 10 at home,...
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...
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