Football Update
Well the World Cup is now half way through, 32 games played, 32 games to go. The talk here in...
2010-06-21
502 reads
Well the World Cup is now half way through, 32 games played, 32 games to go. The talk here in...
2010-06-21
502 reads
This Thursday gone, (June 18th) I went to a hotel near Heathrow airport in London for what was titled a...
2010-06-21
808 reads
This is just a short post that uses a contrived example to demonstrate how to find duplicate records in a...
2010-06-18
1,125 reads
This day only comes around once in every four years, we've all been waiting for it for months. It's been...
2010-06-11
596 reads
You can probably tell from some of my more recent posts that I have been doing some work lately on...
2010-06-09
1,687 reads
It's that time of the month again, time for the next round of T-SQL Tuesday posts. This month is being...
2010-06-08
994 reads
I recently installed a new SQL Server 2008 instance on a brand new Windows 2008 R2. When I tried to...
2010-06-07
647 reads
Recently I have been installing a new SQL Server 2008 instance on Vmware vSphere based virtual server, the OS was...
2010-06-04
1,213 reads
I haven’t written anything technical or SQL Server related for that matter on my blog for a few of weeks....
2010-06-03
640 reads
2010-06-02
637 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