Removing part of string before and after specific character using Transact-SQL string functions
Problem
Today, one of the developers come to me and asked me the question that is there any T-SQL function that...
2014-02-23
47,722 reads
Problem
Today, one of the developers come to me and asked me the question that is there any T-SQL function that...
2014-02-23
47,722 reads
There are two major reasons baseball has been such a boon to statisticians trying to measure human performance. First, sample...
2014-02-23
614 reads
What is (SSAS) SQL Server Analysis Services Tabular Mode?
SQL Server 2012 ships Analysis Services that can be installed in the...
2014-02-22
2,199 reads
Excel- and cloud-based BI suite finally comes out of preview. Woot! – check out all the details here
from ZDNet | Big On...
2014-02-22
523 reads
Here is a cool looking 1964 FJ40 Toyota Land Cruiser in good original condition…a road warrior that has a great...
2014-02-22
738 reads
The first step in treating rust is keeping it from forming, which means keeping your truck’s metal painted, plated, or...
2014-02-22
472 reads
Well, Kem’s cruiser was actually just a bit faded but pretty much in great shape. He had hired someone else...
2014-02-22
405 reads
For someone re-initialization is very simple, just go to publisher and right click and select re-initiallize and it will ask...
2014-02-22
564 reads
when you check on the sql server services and sql agent services it’s getting started on windows cluster but on...
2014-02-22
683 reads
I have been working 100% from home for almost four months now, and one of my former coworkers recently hit...
2014-02-22
545 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