July SCSUG Meeting
First, I wanted to post a reminder that the July SCSUG meeting has been moved to this coming Monday, July...
2010-07-08
617 reads
First, I wanted to post a reminder that the July SCSUG meeting has been moved to this coming Monday, July...
2010-07-08
617 reads
This is a bit later than usual as the meeting was a week ago now, but I wanted to post...
2010-06-18
669 reads
I saw a Blog post by Grant Fritchey (Blog | Twitter) a couple days ago on using Geospatial data in SSRS...
2010-06-18
1,812 reads
Another quarter gone, and unfortunately I’m still looking about the same on goal progress. Still looking good on Blog posts...
2010-06-10
1,023 reads
In this edition of T-SQL Tuesday, Jorge Segarra (Blog | Twitter) asks us what our favorite new feature of SQL 2008...
2010-06-08
1,124 reads
Recently on the SSC forums, someone asked about how to measure the money in an actual dollar figure that they...
2010-06-02
754 reads
Glenn Berry (Blog) writes a lot of queries to extract information from the system DMV’s. One of them in particular...
2010-05-24
2,420 reads
This coming Thursday is the SCSUG meeting. This is no normal meeting. Instead of the standard format of pizza/socialization followed...
2010-05-10
907 reads
Whew! So I've been super busy the past week and a half upgrading our production server from SQL 2000 to...
2010-04-26
706 reads
Ok, continuing from my post last night about the ‘Run as Administrator’ bug in SSMS, here’s the other half of...
2010-04-13
814 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