Getting More Hardware Information from SQL Server Denali DMV Queries
As I recently discussed, I often hear from database professionals who are not allowed to access their database servers directly....
2011-04-06
2,839 reads
As I recently discussed, I often hear from database professionals who are not allowed to access their database servers directly....
2011-04-06
2,839 reads
As I was surfing around twitter after the marathon TV event that was the Royal Wedding came to end last...
2011-04-06
722 reads
Here's a tip for bloggers (or anyone else) who use third party tools to convert T-SQL code into a publishing ...
2011-04-06
654 reads
Day 6 Functions and error handling As everyone aware of what is function, so no need to give therotical infomration...
2011-04-06
225 reads
Part 1 of this blog talked about the bad experience we had with a badly configured SQL Server. The second...
2011-04-06
1,618 reads
On the topic of my SQL Connections SQL Server presentation, one of the things I pointed out about recent SQL...
2011-04-06
1,118 reads
One of the topics the Election Review Committee has discussed is how best to score the interview portion. Because of...
2011-04-06
1,362 reads
I have been trying to get to Dallas for a SQL Saturday for nearly a year, when the first event...
2011-04-06
1,399 reads
I have been trying to get to Dallas for a SQL Saturday for nearly a year, when the first event...
2011-04-06
874 reads
Greetings. Welcome once more to the Miskatonic University branch of SQL University. Does anyone know where to buy some camping...
2011-04-06
890 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