T-SQL Tuesday #50: Doing More With Less
It’s time once again for that monthly geek party again we like to call T-SQL Tuesday. T-SQL Tuesday #50 is...
2014-01-14
1,005 reads
It’s time once again for that monthly geek party again we like to call T-SQL Tuesday. T-SQL Tuesday #50 is...
2014-01-14
1,005 reads
T-SQL Tuesday is a monthly blog party hosted by a different blogger each month.
T-SQL Tuesday 50 – Automation
This blog party was...
2014-01-14
832 reads
TweetG’day,
Well, it’s the first TSQL-Tuesday of 2014 and one of my New Years resolutions for 2014 is to contribute to...
2014-01-14
1,309 reads
I spent some time this month to true up the SQL Server 2005 version, with the other versions for the...
2014-01-14
1,071 reads
It’s a little less than two weeks until SQL Saturday #271 – Albuquerque. The second event in that great city, and...
2014-01-14
803 reads
I was recently just letting my mind wander. As it’s prone to do, all sorts of things just entered into...
2014-01-14
785 reads
When I talk to people about switching from being a salaried employee to an independent consultant (see my presentation How to...
2014-01-14
1,840 reads
In just a couple months… on March 1… I’m going to jump into a lake in Minnesota. Now it’s cold...
2014-01-14
646 reads
I missed last month and I was a bit sad, but I was traveling the week before and speaking, and...
2014-01-14
779 reads
In my developer life, my motto was ‘Automate all the things’ and since transitioning to a DBA role, my motto...
2014-01-14
631 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