When DMVs Cost Me My Job
Back in early 2006, I was still working at my first ever DBA job. I had only been a DBA...
2013-12-27
991 reads
Back in early 2006, I was still working at my first ever DBA job. I had only been a DBA...
2013-12-27
991 reads
This is the second installment in the 12 day series for SQL tidbits during this holiday season. Previous articles in this mini-series on quick tidbits: SQL Sat LV announcement...
2013-12-26
9 reads
This is the second installment in the 12 day series for SQL tidbits during this holiday season.
Previous articles in this...
2013-12-26
625 reads
It’s Thursday and about time for this week’s weekly link round-up. Since it’s the holidays, I didn’t feel like putting...
2013-12-26
1,079 reads
It's been a good run doing a post every day. I'm scaling it back a bit. I liked getting these...
2013-12-26
758 reads
As required, the Board has posted proposed changes to the bylaws for review by the members. The changes are fairly...
2013-12-26
532 reads
Don't forget! This coming Monday is the last Monday to win a free month of Pluralsight! All it takes is...
2013-12-26 (first published: 2013-12-20)
1,717 reads
Last year I did a mini-series themed around the 12 Days of Christmas. I am going to do a similar series this year. Over the next 12 days, I...
2013-12-25
9 reads
Last year I did a mini-series themed around the 12 Days of Christmas. I am going to do a similar...
2013-12-25
589 reads
Finally we'll see who won the final training prize! The winner is Komal! Merry Christmas and Happy Holidays to everyone! The free...
2013-12-25
519 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