Growing the SQL Community – Carefully
If you’re a blogger or a twitterer or a SQL speaker or PASS volunteer, you do it because you have...
2010-06-25
563 reads
If you’re a blogger or a twitterer or a SQL speaker or PASS volunteer, you do it because you have...
2010-06-25
563 reads
One of the first roadblocks many developers run into when using SQL Server for the first time is firing off...
2010-06-24
2,623 reads
A Twitter user asked for a script to remove old backups, and I had one I built back in February,...
2010-06-24
1,135 reads
Today I did a webinar on MDX solutions. For those of you interested you can grab the slides here and...
2010-06-24
1,215 reads
I don’t travel a lot, but with the success of SQL Saturday, I find myself heading out on the road...
2010-06-24
1,330 reads
Today we’ll try to finish up by looking at a couple of the semi-interesting parts of the code in this...
2010-06-24
649 reads
Nominations opened today and will run through July 21st. Whether you’re planning to be a candidate or not, I hope...
2010-06-24
557 reads
I’ve been experimenting with stories in the editorial, experiences of my own that are amusing and have some kind of...
2010-06-24
937 reads
Since the release of SQL Server 2005, Microsoft has been using what they call an Incremental Servicing Model for SQL...
2010-06-23
2,200 reads
Microsoft has released SQL Server 2008 R2 RTM Cumulative Update 2. It became available for download today, and you can...
2010-06-23
544 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