TempDB – Relocate the TempDB Database Files
I took control of a new server recently and noticed that Tempdb was not configured to best practice. It was...
2010-03-28
1,297 reads
I took control of a new server recently and noticed that Tempdb was not configured to best practice. It was...
2010-03-28
1,297 reads
For those people who like to use the Activity Monitor in the SQL Server Management Studio GUI instead of, or...
2010-03-25
2,876 reads
I recently posted a couple of scripts that backup all databases on your SQL Server instance to disk with a...
2010-03-23
1,339 reads
My last post showed a little script that I use for taking full backups of all my databases on an...
2010-03-21
7,804 reads
We all know the importance of taking regular backups of our SQL Server databases. This is a useful little script...
2010-03-18
1,724 reads
This is a short post on enabling file streaming. I have read a few sources that cover the same topic...
2010-03-16
755 reads
Recently I wrote a short post on the default trace in SQL Server. You can read that here. In this...
2010-03-14
14,859 reads
This post is the second post in my series about Database mirroring. For part one is titled Configuring Database Mirroring...
2010-03-11
756 reads
“IO IO, It’s off to disk we go!” was in Mike Walsh’s blog post that introduced this TSQL Tuesday and...
2010-03-09
576 reads
I plan on writing a series of posts on database mirroring, this is the first. Database Mirroring is a new...
2010-03-07
3,727 reads
By Steve Jones
I use ConEmu for my terminal interface. I’m still on Windows 10 at home,...
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...
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