Hi
i am searching a string in IIS Logs, i am parsing this through Logparser. The Logparser throws an error when ever the string has a single quotes with in it.
sample code
SELECT To_lowercase(cs-uri-stem) as URL, count(URL), MAX(Date)
FROM ‘[LOGFILEPATH]’
WHERE URL LIKE ‘String’s url’ AND cs-username is not NULL
GROUP BY URL
the script works fine if the string has no single quotes in it. but i am not sure how can i make this work if it has a single quotes in the string. can anyone help me out?
Regards
Lokesh