SQL Saturday Advice - Build a Foundation
I think this is a good idea, and I’ll give you some reasons, but every SQL Saturday ought to consider...
2010-07-15
977 reads
I think this is a good idea, and I’ll give you some reasons, but every SQL Saturday ought to consider...
2010-07-15
977 reads
This is the review of the second chapter of the book Defensive Database Programming. The title of this chapter is...
2010-07-15
1,827 reads
April of 2009 I decided it was time to blog about my SQL Server experiences in earnest. Steve Jones (twitter|blog)...
2010-07-14
537 reads
The script below is a simple and quick way to find out the last backup performed successfully to the databases...
2010-07-14
775 reads
We’ve got 6 days left before the call for nominations for the 2010 PASS election closes and I want to...
2010-07-14
860 reads
November will be a busy time of the year for many SQL Server DBAs as they head off to the...
2010-07-14
683 reads
Today, I received the official word that I will be presenting two sessions in the SQLServerCentral.com track at the SQL...
2010-07-14
891 reads
If you're a PASS member you may have noticed in this morning's Community Connector that the 2011 spring event I...
2010-07-14
551 reads
Short notes this time, but wanted to get a few thing written down:
Attendance was about 20, lower than expected for...
2010-07-14
478 reads
"Defend Your Data"
If you’re a SQL Server Database Administrator and you don’t know what CHECKDB is then you need to...
2010-07-14
534 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