Common SQL Server Mistakes - Shrinking Databases
I don’t like there being an easy command to shrink databases, and I especially don’t like seeing the shrink option...
2010-09-14
5,643 reads
I don’t like there being an easy command to shrink databases, and I especially don’t like seeing the shrink option...
2010-09-14
5,643 reads
As you may know we like to try new stuff here in Orlando, and this is another new thing. I’ve...
2010-09-13
613 reads
I do not usually post a quote of the day but since this is my own quote I decided to...
2010-09-13
365 reads
Let’s say that you have a staging table, that then loads to a destination table in the same database. If...
2010-09-13
558 reads
SQL Saturday: All the COOL kids are doing it!
It’s only twelve days until SQL Saturday #52 in Colorado! I’ll be...
2010-09-13
715 reads
I had the pleasure of making my second annual September visit to the Space Coast SQL Server User Group in...
2010-09-13
343 reads
I will be speaking at SQL Saturday #52 - Colorado in a little less than two weeks. I am giving my...
2010-09-13
1,082 reads
I ran across a great blog titled: Post 300 or why all developers should be blogging. The reasons given in...
2010-09-13
1,226 reads
It’s back with a slightly different format this time, 28 hours of seminars delivered over two days, and it’s all...
2010-09-13
577 reads
In this installment of the Getting Drive Info series (Part 1, Part 2, Part 3), SSIS will be used to collect and save the drive information. SSIS provides multiple...
2010-09-13
21 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