Practice Your PASS Session on the SQL Lunch
We at the SQL Lunch would like to extend an invitation to all of the PASS speakers. If you are...
2010-07-18
405 reads
We at the SQL Lunch would like to extend an invitation to all of the PASS speakers. If you are...
2010-07-18
405 reads
Recently, I have been given the opportunity to work with a company who wanted to explore the capabilities of Report...
2010-07-18
370 reads
T-SQL Tuesday #008: Gettin' Schooled
Welcome to another exciting episode of T-SQL Tuesday. I’m Robert L Davis (blog|@SQLSoldier), and I’m...
2010-07-18
2,447 reads
If you’re planning on rolling out Report Builder to end users, you may want to download the stand alone installation...
2010-07-18
585 reads
Fellow SQL Server MVP Arnie Rowland (blog | twitter) has done a great job organizing an interesting effort to help unemployed...
2010-07-17
593 reads
Since I designed the Enhanced Threading Framework (ETF) I am always looking to improve it. Status quo is not for me. I decided to take on the 'queue' part...
2010-07-17
14 reads
Since I designed the Enhanced Threading Framework (ETF) I am always looking
to improve it. Status quo is not for me. I decided to take on the 'queue'
part...
2010-07-17
35 reads
Since I designed the Enhanced Threading Framework (ETF) I am always looking to improve it. Status quo is not for...
2010-07-17
703 reads
Red Gate Software has recently opened up its SQL Response v2 Early Release Program (EAP), and is inviting anyone who...
2010-07-17
964 reads
Advanced Troubleshooting Week at SQL University, Lesson 3
Welcome back to Advanced Troubleshooting Week at SQL University. I’m your guest professor...
2010-07-16
1,873 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