Respected Contributor.. Respected Contributor..
Respected Contributor..

UCMDB Tips: How to search a string which contains []



When using SQLServer 2008 R2, the property name which contains [], like node[10] – name, node[20] – name, no CI can be retrieved properly.





The character [ is a wildcard in SQLServer. So the string format being used in LIKE clause should be changed as below:

node[[]%] – name


Hope this tips would be helpful. 


Best Regards, 



“HP Support
If you find that this or any post resolves your issue, please be sure to mark it as an accepted solution.”

Click the KUDOS star on the left to say 'Thanks'
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.