Grant Fritchey

Grant Fritchey is a SQL Server MVP with over 20 years’ experience in IT including time spent in support and development. Grant has worked with SQL Server since version 6.0 back in 1995. He has developed in VB, VB.Net, C# and Java. Grant has authored books for Apress and Simple-Talk, and joined Red Gate as a Product Advocate in January 2011. Find Grant on Twitter @GFritchey or on his blog as the Scary DBA.

Blog Post

Azure Data Studio Intellisense

I recently saw a question about the Azure Data Studio Intellisense: “Why won’t intellisense in Azure Data Studio work with different schemas?” Immediately I thought, “Wait, it does.” But,...

2022-02-22

52 reads

Blog Post

PostgreSQL Restore in Azure

I recently wrote an article about PostgreSQL restores (and by extension, backups) over on Simple-Talk. The restore process within PostgreSQL, without 3rd party involvement, can be a little tricky....

2022-02-14 (first published: )

120 reads

Blog Post

Two Clustered Indexes?

Everyone knows that you only get a single clustered index, right? Wouldn’t it be great though if you could have two clustered indexes? Well, you can. Sort of. Let’s...

2022-01-31 (first published: )

441 reads

Blog Post

Why Is “WHERE 1=0” Slow?

I saw a question the other day, questioning why they’re creation of temporary tables was so slow. What they were doing was (a much more complicated version of) this:...

2022-01-24 (first published: )

876 reads

Blog Post

Identifying Recompile Causes

Strictly speaking, a recompile isn’t really a performance tuning problem. In fact, a lot of time, recompiles are desired because they reflect changes in statistics which are likely to...

2022-01-12 (first published: )

268 reads

Blogs

PostgreSQL error in Fabric Pipelines – No pg_hba.conf Entry for Host

By

I came across a bit of a weird error when I was trying to...

How I Effortlessly Dockerize Python-Based AWS Lambda Functions

By

As a Software Engineer, i would like to learn how to dockerize my Python...

Export Extended Event Results to CSV or Table

By

This is something that I’ve seen pop up a couple of times on various...

Read the latest Blogs

Forums

Is Perfect Software Attainable?

By Louis Davidson (@drsql)

Comments posted to this topic are about the item Is Perfect Software Attainable?

SQL DB migration

By ShuaibV

Hi I am New To Azure Sql.  Can some one please share  If we...

Contained Availability Groups - Failover Questions.

By krypto69

Hi I am considering creating Contained Availability Groups in my production environment. Thinking I...

Visit the forum

Question of the Day

Multi-Database Marked Transactions

I run a marked transaction across multiple databases with this code:

BEGIN TRAN onemorenewdbTran WITH MARK 'mark from 3 dbs'
USE sandbox2
INSERT dbo.AddressTable
  (AddressID, AddressValue, AddressPostal)
VALUES
  (12, '123 three St', '4444')
GO
USE sandbox3
INSERT dbo.Logger (logdate, logmsg) VALUES (GETDATE(), 'tran message')
GO
INSERT sandbox4.dbo.logger (uid) VALUES (700)
COMMIT TRAN onemorenewdbTran
GO
How many marks are inserted into msdb.dbo.logmarkhistory?

See possible answers