2012-01-29
13 reads
2012-01-29
13 reads
2012-01-29
10 reads
2012-01-29
32 reads
This series of Videos will walk through how to detect worst performing sql queries which is slowing down Microsoft SQL...
2012-01-29
772 reads
Yesterday night one of FB Friend have ping me, he has issue with his local SQL Server instance. Our conversation...
2012-01-29
3,425 reads
This weekend I went to SQL Saturday in Auckland. It was nice to interact with other DBAs again. Kent Chenery...
2012-01-29
12,011 reads
Find Login in AD
Many times we require to know if particular login is a part of ad user group. Or...
2012-01-29
868 reads
One of the challenges in working with Merge Replication is handling conflicts since writes can occur at any node in...
2012-01-28
1,550 reads
I tried this out – Change.org that is – recently as part of a post about PASS and wanted to post a...
2012-01-28
796 reads
The second round of #meme15 finished up last week and it’s time to see who participated. In total, there were...
2012-01-28
799 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