A Script A Day - Day 7 - Memory Queries
Today's script is a collection of a few memory queries I've collected from various sources over the years. These queries are by no...
2012-02-07
2,339 reads
Today's script is a collection of a few memory queries I've collected from various sources over the years. These queries are by no...
2012-02-07
2,339 reads
I’d like to share with you a laziness efficiency method I use when developing reports in SQL Server Reporting Services. ...
2012-02-07
3,418 reads
This post describes how to call to add an email attachment using Powershell.
In an earlier post - SQL Server – Send email...
2012-02-07
8,265 reads
This is probably a rare occurrence — but I've noticed that data validation for an article with 10 billion or more...
2012-02-07
1,015 reads
It’s the first Monday of February, mostly, it’s a short month, but there’s no reason to skirt on checking out...
2012-02-07
821 reads
I’m so excited to tell you about SQL Saturday 130 in Jacksonville coming April 28th. This is the 5th year...
2012-02-07
1,052 reads
My post this weekend about slaying beasts with magical .dll incantations was my way of relieving some stress after having...
2012-02-07
2,394 reads
Back in April of 2011, I wrote a post that compared the merits of using an ancient, but actual rack...
2012-02-06
1,423 reads
It’s late, really late and you’ve got a mountain of work to get through to meet the deadline. To add...
2012-02-06
995 reads
I will be speaking at the February Baton Rouge SQL Server User Group meeting on Wednesday the 8th. The session...
2012-02-06
681 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