Trying to run the following query string (against MS SQL Server) which includes special characters. How do I do this?
select top 1 Contact_CustomData.CustomFields.value('(/CustomFields[1]/GiftCard)[1]', 'varchar(100)') from Contact_CustomData;
This query (when executed directly on the db) works fine. Just need to escape these characters somehow.