We tried to apply patch 1 for 15.9.1 (15.9.1.1) and it fails with the following error in the install.logs
[CA Clarity][SQLServer JDBC Driver][SQLServer]Argument data type varbinary(max) is invalid for argument 1 of textptr function.
Release : 15.9.1
Component : CA PPM INTEGRATIONS & INSTALLATIONS
Database: MSSQL Server
This can be due to audit triggers in the database using the textptr function.
Drop and update the audit triggers such as the ones listed below:
The audit triggers can be updated by the steps below:
To find if the textptr function is being used anywhere else, the following query can be used:
select distinct
db_obj.name AS [Object Name],
case when db_obj.xtype = 'P' then 'Stored Proc'
when db_obj.xtype = 'TF' then 'Function'
when db_obj.xtype = 'TR' then 'Trigger'
when db_obj.xtype = 'v' then 'View'
end as [Object Type],
parent_obj.name
from sysobjects db_obj
inner join syscomments comment ON db_obj.id = comment.id
left join sysobjects parent_obj ON parent_obj.id = db_obj.parent_obj
where db_obj.type in ('P','TF','TR', 'V')
and db_obj.category = 0
and charindex ('textptr' ,comment.text)>0
order by 3,1;