- Sathishkumar S
- PowerBuilder
- Monday, 20 June 2022 12:23 PM UTC
Hi Appeon,
I am currently getting an database error from PowerBuilder 2019 R3 as below, (Operand type clash: bigint is incompatible with datetime2) when doing insert or update from the store procedure in which datetime2 data type has been used for the result set table.
but I am not getting any error while executing the SQL Statement in SSMS
declare @p2 int
set @p2=NULL
exec dbo.usp_iu_activity N'INSERT',@p2 output,101,5,126,3,NULL,NULL,NULL,12345,12345,NULL,'2022-06-20 01:46:09.2940000'
select @p2
I would like to get your advice why I am getting this error from PB but not from SSMS.
Is it because PB 2019 R2 is not compatible with Datetime2? or is there any other reasons? or Do I have to do any setting for OLE DB profile string?
Thanks,
Sathishkumar.
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.