How Do You Defragment Your SQL Server Indexes
I give a lot of presentations based on best practices, and in all of them I stress the importance of...
2010-08-18
2,650 reads
I give a lot of presentations based on best practices, and in all of them I stress the importance of...
2010-08-18
2,650 reads
In the upcoming weblog postings I want to work out the differences between unique
and non-unique indexes in SQL Server. I...
2010-08-18
3,256 reads
So the slate has been announced, so now I feel like I can talk about not making the cut. Based...
2010-08-18
525 reads
Two more eligible developers and deserving projects have been selected. Any proposals submitted but not selected this time will be...
2010-08-18
638 reads
If you read this blog I’m sure you read Steve Jones’ blog as well, so you know that the PASS...
2010-08-18
416 reads
I read Stuart
Ainsworth’s blog post this morning, and I thank Stuart for posting
something. However, there’s an implication in...
2010-08-18
1,726 reads
I’m flying to Nashville today for the Board meeting on August 19 and 20, 2010. I had already planned to...
2010-08-18
937 reads
Well I have to say I’m surprised. It’s always hard to get a rejection, and I’m not quite sure what...
2010-08-18
3,249 reads
I heard a little birdy cherping and it looks like there is going to be a great give away tomorrow...
2010-08-18
555 reads
While getting prepared for an upcoming presentation, I remembered that I installed the November CTP trial on the machine that...
2010-08-18
461 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