devLINK a Huge Success
Where can you spend $100 and get three full days of technical training? devLINK of course. devLINK 2010 was held...
2010-08-08
514 reads
Where can you spend $100 and get three full days of technical training? devLINK of course. devLINK 2010 was held...
2010-08-08
514 reads
With everyone geared up for SQL Cruise I’m surprised we can air this video but since we kicked it off...
2010-08-07
204 reads
Ok folks, the video from SQL Saturday 40 is finally up. Thanks to the sponsors who helped foot the bill...
2010-08-07
280 reads
A year ago I blogged about building a SQL Server 2008 Object Dependency Viewer based on a script by PowerShell...
2010-08-07
1,702 reads
It’s been quite some time that I blog, Sorry about that I was busy with my movement from USA to...
2010-08-07
861 reads
It’s been a busy week and I haven’t been able to put the time in to picking the winner for...
2010-08-07
774 reads
This post is the first in a new weekly series meant to give my readers some insight into my week....
2010-08-07
353 reads
According to all of their public pronouncements and the flurry of recent activity, Microsoft seems extremely serious about Windows Azure...
2010-08-06
1,004 reads
We are just about a week away from probably the biggest FREE training event to ever take place in Baton...
2010-08-06
555 reads
NullIf can be a very handy function sometimes. For those who have not used it, if the result of the...
2010-08-06
679 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