From 7fb25051e8a883a3e56564ee9a5ca7ed62d8a0d6 Mon Sep 17 00:00:00 2001 From: Tomek Masternak Date: Thu, 31 Oct 2024 11:48:23 +0100 Subject: [PATCH] fix --- .../Queuing/SqlServerConstants.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/NServiceBus.Transport.SqlServer/Queuing/SqlServerConstants.cs b/src/NServiceBus.Transport.SqlServer/Queuing/SqlServerConstants.cs index 370be340b..468dcf74a 100644 --- a/src/NServiceBus.Transport.SqlServer/Queuing/SqlServerConstants.cs +++ b/src/NServiceBus.Transport.SqlServer/Queuing/SqlServerConstants.cs @@ -52,7 +52,7 @@ THEN DATEADD(ms, @TimeToBeReceivedMs, GETUTCDATE()) END, public string CheckIfTableHasRecoverableText { get; set; } = @" SELECT COUNT(*) -FROM {0}.sys.columns c +FROM [{0}].sys.columns c WHERE c.object_id = OBJECT_ID(N'{1}') AND c.name = 'Recoverable'";