New Domain - My blog has a new domain name gethynellis.com
About a year ago I started to write a blog, previously to that, for about three years I had been...
2010-11-28
629 reads
About a year ago I started to write a blog, previously to that, for about three years I had been...
2010-11-28
629 reads
The results of the SQLServerPedia Awards 2010 are out....I was nominated in two categories and I won the "New to...
2010-11-10
1,093 reads
I wasn’t going to make a special effort for the one hundredth post on my blog, I was intending to...
2010-11-05
781 reads
I have been catching up on some blog posts and I read a few posts by well known bloggers like...
2010-11-04
598 reads
I got asked a question today that I though was quite interesting. If my backup starts at 6pm and it...
2010-11-04
687 reads
WOW this is the 12th TSQL2Sday albeit this month’s is week early because of the PASS summit next week, so...
2010-11-02
631 reads
Some friends of mine decided to support the Movember charity this year. I would try and explain what Movember is...
2010-11-01
715 reads
In order to be able to execute bulk operations you need to certain level of privilege both on the database...
2010-10-28
33,043 reads
About two weeks ago my good friend and former colleague Justin Hostettler-Davie -JHD (Blog | Twitter) asked me via my wife...
2010-10-18
780 reads
A SQL Server database can be in one of three recovery models. FULL, BULK_LOGGED and SIMPLE. The recovery model you...
2010-10-12
1,969 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