Multiple usage of functions to ensure “value” is not null? – NO
In this post I’m describing a piece of code that is not well written. The author (unknown) had applied three functions for a variable to ensure it never accepts...
2017-04-29
16 reads
In this post I’m describing a piece of code that is not well written. The author (unknown) had applied three functions for a variable to ensure it never accepts...
2017-04-29
16 reads
In this post I’m describing a piece of code that is not well written. The author (unknown) had applied three functions for a variable to ensure it never accepts...
2017-04-29
35 reads
In this post I’m describing a piece of code that is not well written. The author (unknown) had applied three...
2017-05-10 (first published: 2017-04-29)
2,400 reads
Today was my presentation in the April GroupBy conference lineup. I presented on DevOps and changing your database development to...
2017-05-19 (first published: 2017-04-28)
1,688 reads
I had a brief conversation with Stuart Ainsworth yesterday over Facebook. In passing I mentioned that I was doing well...
2017-04-28
636 reads
VS Live takes place in Austin on May 15-18, 2017. This is a great conference in a fun city. It’s...
2017-04-28
843 reads
Nearly May! Although it’s been snowing this week in Dublin so summer still appears to be a while off…
Community driven...
2017-04-28
527 reads
Nearly May! Although it’s been snowing this week in Dublin so summer still appears to be a while off…
Community driven...
2017-04-28
590 reads
I have been quite interested by vs code and have been using it more and more recently. I use it...
2017-05-09 (first published: 2017-04-27)
3,462 reads
I have been quite interested by vs code and have been using it more and more recently. I use it...
2017-04-27
225 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