Changing Case (Day 12)
In yesterday’s tip, I showed an example of changing a block of text from upper case to lower case. However,...
2018-01-12
294 reads
In yesterday’s tip, I showed an example of changing a block of text from upper case to lower case. However,...
2018-01-12
294 reads
Recently, I got to work with a client on something interesting. We implemented transactional replication to send data to an...
2018-01-22 (first published: 2018-01-12)
1,333 reads
In this module you will learn how to use the Image Grid Custom Visual. This visual is a unique way...
2018-01-23 (first published: 2018-01-12)
1,890 reads
Phew, what a week! Have been looking for a new flat to live so it’s been a bit mad. Have...
2018-01-12
319 reads
While Regular Expressions lets us work with text not cleanly formatted, if you are trying to work with text that...
2018-01-11
245 reads
SQL Saturday Preconference: February 9th, 2018 in Redmond, WA Do you think you write T-SQL queries that perform well? Think...
2018-01-11
418 reads
Another post for me that is simple and hopefully serves as an example for people trying to get blogging as...
2018-01-19 (first published: 2018-01-11)
1,136 reads
Thank you to everyone that took the time to write and contribute, I enjoyed reading about how you conquered your...
2018-01-11
588 reads
One thing that SQL Server does very well is come pre-configured in a lot of ways. These pre-configured settings would be called defaults. Having default settings is not a...
2018-01-11
17 reads
One thing that SQL Server does very well is come pre-configured in a lot of ways. These pre-configured settings would...
2018-01-11
539 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