Need to create a time dimension down to the millisecond?
Ok, I know that creating a time dimension down to the millisecond is extremely rare. After all, we are talking...
2012-02-01
1,281 reads
Ok, I know that creating a time dimension down to the millisecond is extremely rare. After all, we are talking...
2012-02-01
1,281 reads
Sometimes its fun to think of what career you might have chosen if you hadn’t become a DBA. With this...
2012-02-01
832 reads
Let’s say, you want to spend a couple of days learning about SQL Server. You also want to spend some...
2012-02-01
1,185 reads
Have you ever needed to do a quick time calculations of the amount of hours/minutes/seconds that have passed? Suppose you...
2012-02-01
1,118 reads
I’ll be visiting the Space Coast group (http://spacecoast.sqlpass.org/) on Feb 9th to do a presentation on Professional Development Plans. I’m...
2012-02-01
735 reads
Today is the 1st February 2012 and as promised here is the first of script in my "A Script A Day"...
2012-02-01
583 reads
Dynamic Management Views are a very powerful tool that are part of Analysis Services in 2008 and 2008 R2. They...
2012-02-01
2,335 reads
As we have done for the last several years, SQLServerCentral.com will be offering its own track at SQL Server Connections...
2012-02-01 (first published: 2012-01-31)
2,507 reads
What is an app domain
An App Domain can be thought of as a kind of lightweight process. So What is...
2012-01-31
140 reads
Knowing precisely how to start on your next adventure is tricky. With so many options and decisions in front of...
2012-01-31
2,153 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