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.
Andreas.
I have gone through the help you have mentioned, I also got confused that's why I wrote to Appeon.
Regards,
Sathishkumar.
It's clearly stated in the help .. "PB Supports only up to 6 fractional seconds precision although SQL Server datatype supports up to 7 fractional seconds of precision".
Thus the "not fully supported" remark that I mentioned earlier. You have to either accept the loss of significant digits or depending on your DML actions, CAST the DT2 appropriately. A PIA I must admit.
PS: The same with TimeZone based DT.
Regards .. Chris
Regards,