Blog Changes
I have made a few changes to the blog over the past couple weeks The changes have come about as...
2012-10-03
650 reads
I have made a few changes to the blog over the past couple weeks The changes have come about as...
2012-10-03
650 reads
SQL Server Virtualisation and Consolidation: Hands-On
Come and join me in London this December for a three day course covering the...
2012-10-02
633 reads
Come and join me live in New York this coming December where I will be presenting Learning Tree’s2109 SQL Server...
2012-10-01
841 reads
There are still seats left on the Learning Tree course – An Introduction to SQL Server event that I will be...
2012-09-27
814 reads
I run into an interesting issue with an Availability Group database recently. I was running a data load against a...
2012-09-26
5,007 reads
Another date has been added to my schedule for the delivery of 2109 SQL Server Virtualization and Consolidation. Come and...
2012-09-25
680 reads
Its not often I publish two blog posts in a single day but this Monday I will make an exception....
2012-09-24
976 reads
December this year will be a great month for me. I am scheduled to deliver my new Learning Tree course...
2012-09-24
694 reads
SQL Server 2012 has been in RTM since the 1st April 2012. Many of my clients have been evaluating the...
2012-09-20
1,112 reads
This last year or so I have been backing up my important files to cloud. I started using SkyDrive and...
2012-09-19
656 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