sysadmin

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

Contained Availability Groups - Failover Questions.

By krypto69

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

Run SSIS package asynchronously from SQL Agent job step

By Pete Bishop

I'd like to run an SSIS package asynchronously from a SQL Agent job step...

Index Scan instead of index seek

By Martass

Hello guys, I have the following query: SELECT COUNT(*) FROM "dbo"."STXL" INNER JOIN "dbo"."STXL_RET"...

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