Connecting a powershell session to a container
One of the questions that I was asked at SQL Saturday Iceland was “how can I view the filesystem within...
2017-04-05
475 reads
One of the questions that I was asked at SQL Saturday Iceland was “how can I view the filesystem within...
2017-04-05
475 reads
As good SQL Server DBA’s we want to ensure that our databases are regularly checked for consistency by running DBCC...
2017-04-05
659 reads
It’s not easy to keep up with tech, here’s an update I missed – you can add params to the connection...
2017-04-05
678 reads
You can see me in May at VS Live in Austin, where I and many others will be talking DevOps....
2017-04-04
533 reads
I’m speaking as part of a small panel for IT GRC Forum on keeping up your data security program in the...
2017-04-04
314 reads
On April 12, I'm going to show you about two dozen ways to make your backups better, easier, faster, and...
2017-04-04
356 reads
In a previous post, I showed how to set up statistics maintenance for your Azure databases using Azure Automation. However,...
2017-04-04
638 reads
Last night I saw a tweet from Matt Gordon (b|t); the topic caught my eye – “How I Became A…SQL Server...
2017-04-04
405 reads
For most of the time I’ve been working for Redgate, we’ve had some sort of R&D group that tries out...
2017-04-04
507 reads
I want to show you how I went from having multiple single SQL databases in Azure to a database elastic...
2017-04-04
589 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