T-SQL Tuesday #13 – Business Requirements
Business Requirements
We have made it yet another month and to yet another episode in the continuing saga known as TSQL...
2010-12-14
661 reads
Business Requirements
We have made it yet another month and to yet another episode in the continuing saga known as TSQL...
2010-12-14
661 reads
It’s that time of the month again, no not that one, it’s T-SQL Tuesday time and this weeks topic is...
2010-12-14
675 reads
Today I was out and about looking for past roundups on TSQLTuesday. While doing that, I came across a post from Paul Randal (Blog | Twitter) about wait stats. The...
2010-12-13
9 reads
Today I was out and about looking for past roundups on TSQLTuesday. While doing that, I came across a post...
2010-12-13
708 reads
While working on a process to refresh the QA environment (data purge, reload data and reapply changes made over time as parts of release cycles), I ran into self-imposed...
2010-12-13
14 reads
While working on a process to refresh the QA environment (data purge, reload data and reapply changes made over time...
2010-12-13
721 reads
If you’re anything like me, you create a ton of objects and have them in various projects. And sometimes, you...
2010-12-13
561 reads
I had a brainstorm of an idea for a group of articles on my blog a couple of weeks ago and am finally getting around to putting it together....
2010-12-13
8 reads
I had a brainstorm of an idea for a group of articles on my blog a couple of weeks ago...
2010-12-13
513 reads
Watching videos?! Su-ure!
If you’re reading this, it must be Monday morning. Oh dear, that means I am officially starting my...
2010-12-13
527 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