The theft of ideas and content
If you regularly read SQL Server or other technology blogs, you know that the blogs can be a wonderful way...
2009-08-16
537 reads
If you regularly read SQL Server or other technology blogs, you know that the blogs can be a wonderful way...
2009-08-16
537 reads
The Fisherman and the "C" ("City")
Ok, I know when most think about NYC, they think latte-sipping wall-street yuppie (I'm...
2009-08-16
576 reads
I am presenting a 3-hour session on the SQL Server 2008 Data Collector.
The devLink Technical Conference, held August 13-15, 2009...
2009-08-15
970 reads
When Installing SQL Server 2008 on Windows 7 RTM, I encountered a couple of issues. Supposedly you can install SQL...
2009-08-15
799 reads
Well, I had a pretty good week this week. I made an effort and met all my goals:
Eat smaller portions...
2009-08-15
382 reads
For SSIS developers, the need for proper documentation is crucial. However, the built-in object for documentation, the annotation, is difficult...
2009-08-15
1,030 reads
In working on a PowerShell script to load data into SQL Server, I decided to use the Invoke-SQLCMD cmdlet included...
2009-08-14
628 reads
/*
A couple
of years ago, I wrote the Simple-Talk Prettifier. This is really no more than a stored
procedure that...
2009-08-14
3,561 reads
The official announcement was just posted, Kevin Kline is the first member of the Advisory Council. As I mentioned on...
2009-08-14
1,049 reads
The Coldest Winter: America and the Korean War by David Halberstam ($15 at Amazon) was really the first reading I...
2009-08-14
704 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