Using JSON In SQL Server 2016
The new JSON bits in SQL Server 2016 give you the ability to pull stuff out of JSON and to...
2017-05-06
99 reads
The new JSON bits in SQL Server 2016 give you the ability to pull stuff out of JSON and to...
2017-05-06
99 reads
Good news!
The recording of my session “Introducing the SQL Server 2016 Query Store” at the GroupBy conference 2 weeks ago...
2017-05-19 (first published: 2017-05-05)
1,425 reads
This past week, I presented a preconference session and regular session at this year’s SQL Nexus conference in Copenhagen, Denmark. I...
2017-05-05
488 reads
A couple of weeks ago we had a small contest here to pick a skill for Alexa. The entries were...
2017-05-05
482 reads
In this video I talk about Trace Flag 1117 and how it was designed to help keep data file growth...
2017-05-05
102 reads
In this video I talk about Trace Flag 1117 and how it was designed to help keep data file growth...
2017-05-16 (first published: 2017-05-05)
1,340 reads
I made the front page of dbatools, as a part of the community that is supporting this project. Along with...
2017-05-05
612 reads
So you’re using encryption in SQL Server, but you’ve discovered that the expiration date of a certificate is expiring. What...
2017-05-17 (first published: 2017-05-05)
5,676 reads
11:30pm on a Saturday night, and the pager went off…
Error: 5901, Severity: 16, State: 1.One or more recovery units belonging...
2017-05-05
1,839 reads
This topic has come up several times recently, so I feel the need to blog on it. As the person...
2017-05-05
1,147 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