- Chen Mey Lee
- PowerServer 2020 or older (Obsolete)
- Wednesday, 10 March 2021 05:37 AM UTC
Hi,
Stored procedure check null logic is not working in PowerServer (PB2021 beta version).
I have to replace check null logic with check blank space , any solution to fix it without changing stored procedure code ?
eg.1
INSERT INTO #decodes (Display, Data)
SELECT RTRIM(col_value) + ' - ' + RTRIM(descr_long)
,RTRIM(col_value)
FROM KL_CLIENT_PARMS.dbo.pMiscDecodes
WHERE comp_nr = @default_comp_nr
AND plan_nr = @plan_nr
AND col_name = @field_source
--AND RTRIM(LTRIM(col_value)) != NULL
AND RTRIM(LTRIM(col_value)) != ''
AND called_from = 'S'
eg.2
-- IF rtrim(substring(@TRDA,52,1)) != NULL
IF rtrim(substring(@TRDA,52,1)) != ''
SELECT @DSHI = substring(@TRDA,52,1)
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.