12 lines
		
	
	
		
			568 B
		
	
	
	
		
			SQL
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
		
			568 B
		
	
	
	
		
			SQL
		
	
	
	
	
	
| --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 |