diff --git a/src/Paramore.Brighter.Locking.MsSql/MsSqlLockingQueries.cs b/src/Paramore.Brighter.Locking.MsSql/MsSqlLockingQueries.cs index 2bfac270c6..4be6c4a7b2 100644 --- a/src/Paramore.Brighter.Locking.MsSql/MsSqlLockingQueries.cs +++ b/src/Paramore.Brighter.Locking.MsSql/MsSqlLockingQueries.cs @@ -4,7 +4,7 @@ public static class MsSqlLockingQueries { public const string ObtainLockQuery = "declare @result int; " + "Exec @result = sp_getapplock " + - "@DbPrincipal = 'dbo' " + + "@DbPrincipal = 'public' " + ",@Resource = @Resource" + ",@LockMode = 'Exclusive'" + ",@LockTimeout = @LockTimeout" + @@ -13,6 +13,6 @@ public static class MsSqlLockingQueries public const string ReleaseLockQuery = "EXEC sp_releaseapplock " + "@Resource = @Resource " + - ",@DbPrincipal = 'dbo' " + + ",@DbPrincipal = 'public' " + ",@LockOwner = 'Session';"; }