Exception Message: Could not find stored procedure ''master.dbo.sp_getapplock
Posted: Sun 28 Jun 2015 16:57
Hello
I use:
Delphi XE6
Win 7 64 bit
SDAC 7.1.4 Pro for Delphi XE6
SQL Server 2008 R2
In my program, I am using ‘prDirect’ provider of the TMSConnection, and i have SQLQuery of type TSDACMSQuery.
I set:
SQLQuery.SQL.Text := SQL;
where SQL equal to:
' DECLARE @ResourceName NVARCHAR(255) SET @ResourceName = N''LOUN_SO_92120414'' EXEC master.dbo.sp_getapplock @Resource = @ResourceName , @LockMode = Exclusive, @LockOwner = Session' (read=GetFinalSQL)
and then when i call to:
SQLQuery.Execute();
i get the following exception:
The following error has occurred in the application :
Exception class: 'Exception'
Exception message: 'Exception of class ''ETDSError'' has occured.
Exception Message: Could not find stored procedure ''master.dbo.sp_getapplock@Resource@ResourceName,@LockModeExclusive,@LockOwnerSession''.'
In SDAC 6.10.20 for Delphi XE6 this didn't happen.
Please let me know how to solve this.
Thanks.
I use:
Delphi XE6
Win 7 64 bit
SDAC 7.1.4 Pro for Delphi XE6
SQL Server 2008 R2
In my program, I am using ‘prDirect’ provider of the TMSConnection, and i have SQLQuery of type TSDACMSQuery.
I set:
SQLQuery.SQL.Text := SQL;
where SQL equal to:
' DECLARE @ResourceName NVARCHAR(255) SET @ResourceName = N''LOUN_SO_92120414'' EXEC master.dbo.sp_getapplock @Resource = @ResourceName , @LockMode = Exclusive, @LockOwner = Session' (read=GetFinalSQL)
and then when i call to:
SQLQuery.Execute();
i get the following exception:
The following error has occurred in the application :
Exception class: 'Exception'
Exception message: 'Exception of class ''ETDSError'' has occured.
Exception Message: Could not find stored procedure ''master.dbo.sp_getapplock@Resource@ResourceName,@LockModeExclusive,@LockOwnerSession''.'
In SDAC 6.10.20 for Delphi XE6 this didn't happen.
Please let me know how to solve this.
Thanks.