How SQL 2016's JSON Functionality Will Make You Want To Use JSON
This post is a response to this month's T-SQL Tuesday prompt. T-SQL Tuesday was created by Adam Machanic and is a way for SQL users to share ideas about...
2017-02-14
42 reads
This post is a response to this month's T-SQL Tuesday prompt. T-SQL Tuesday was created by Adam Machanic and is a way for SQL users to share ideas about...
2017-02-14
42 reads
Sometimes you have a requirement to grant permissions to every database on an instance. Historically this has required creating a...
2017-02-14
734 reads
In this module you will learn how to use the Mekko Chart Power BI Custom Visual. The Mekko Chart visual...
2017-02-14
882 reads
Today I will write about an option that is less known/used in the SSMS tool. The ‘SQLCMD Mode’ option.
What is...
2017-02-14
4,150 reads
The latest course offer is in from Learning Tree!! And It's Valentine's Day!
Learning Tree are showing you the love with...
2017-02-14
340 reads
I’ve created a free, open-source workshop to teach people the capabilities and features of Power BI Desktop. I was inspired...
2017-02-13
1,188 reads
By Steve Bolton
…………To get the point across that fuzzy sets require membership grades of some sort, throughout this series I’ve...
2017-02-13
934 reads
I flew to Utrecht last week to present with Chrissy LeMaire and Sander Stad to present to the joint Dutch...
2017-02-13
424 reads
I was asked if there was an easy way to export all the plans from cache to a .SQLPLAN file....
2017-02-13
868 reads
Man, if there was an award for procrastinating I’d definitely be in with a shout for today (I write these...
2017-02-13
310 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