Spools in Execution Plans
I got the question the other day, when are you likely to see a spool in an execution plan? Easy,...
2009-09-09
2,845 reads
I got the question the other day, when are you likely to see a spool in an execution plan? Easy,...
2009-09-09
2,845 reads
If you missed out on some of the 24 free, live sessions that made up the 24 Hours of PASS,...
2009-09-09
494 reads
I have the privilege of presenting, Dive into the Default Trace, at the Space Coast User Group, tomorrow evening (Sept....
2009-09-09
308 reads
Even the President thinks so! In his talk yesterday, he warned kids about Facebook, and being careful what they should...
2009-09-09
1,072 reads
Hey there Gang !
Most of you probably know Jamie Thompson has move his blog over to SQLBlog.com. This is worth noting...
2009-09-09
424 reads
I have not worked with SQL Server 7.0 in a loooong time. So when I received a call from a...
2009-09-09
2,020 reads
Have you ever wondered where to go to get good information that will help you in your day to day...
2009-09-09
489 reads
This is part three of a series on writing a technical article. The advice might apply to non-technical articles, but...
2009-09-09
3,637 reads
I currently write the editorial for the PASS Connector which is published every two weeks as part of my role...
2009-09-08
717 reads
Hi,To continue with the replication discussion, on my last post i discussed on some important commands and sp's for how...
2009-09-08
737 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