This commit is contained in:
12
PROMS/SQL Data Tools/CheckAndFixConfigXMLforPSI.sql
Normal file
12
PROMS/SQL Data Tools/CheckAndFixConfigXMLforPSI.sql
Normal file
@@ -0,0 +1,12 @@
|
||||
--select contentid,config,cast(config as xml) xConfig from contents
|
||||
|
||||
-- Check to see if there are any XML conversion issues.
|
||||
-- select max(cast(cast(config as xml) as varchar(max))) test from Contents
|
||||
|
||||
-- Check for erronious PSI Data
|
||||
select * from Contents where Config like '%<PSI %'
|
||||
|
||||
--Remove PSI Node
|
||||
--Update Contents Set Config = substring(config,1,charindex('<PSI ',config))+'/Config>' from Contents where Config like '%<PSI %'
|
||||
|
||||
--NOTE: First run the entire query, then run just the last line above, then run the entire query again to verify there are none left
|
Reference in New Issue
Block a user