SQL Server Trace Events
I answered a forum post the other day over on SSC on the differences between the trace events stmtcompleted and...
2010-02-11
2,985 reads
I answered a forum post the other day over on SSC on the differences between the trace events stmtcompleted and...
2010-02-11
2,985 reads
I have been having an IO subsystem issue recently and I found the whitepapers very useful and wanted to post...
2010-02-09
788 reads
This is a short post on SQL Server storage best practice and what i have learned over the years… Much...
2010-02-07
1,348 reads
Useful link. This is a great best practice article/white paper from Tom Davidson and Danny Tambs.
The word document (880kb) can...
2010-02-07
592 reads
The default trace in SQL Server is something I have been experimenting with lately. It is a feature included in...
2010-02-04
3,888 reads
I recently watched Steve Jones’ (Blog | Twitter) "Building a better blog" presentation from the 24 hours of PASS virtual conference...
2010-02-02
855 reads
I recently discovered the Professional Association of SQL Server (PASS) virtual chapters. For those of you who struggle to make...
2010-01-31
2,032 reads
I was going to spend today finishing off some SQL Server related blog posts, I currently have a list of...
2010-01-30
1,653 reads
This is just a very short post regarding the use of wildcards in a WHERE Clause
It is possible that the...
2010-01-27
599 reads
I run into a small issue at the end last week, a CHECKDB job was reporting corruption on one of...
2010-01-24
672 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