markg1972 Posted October 1, 2020 Share Posted October 1, 2020 Hi All, I wrote code that works perfectly. However when I sent it to IT to automate they added the following code. Declare @query nvarchar(max) Set @query = N' The apostrophe after the N interferes with my code. where b.comment like '%address%' and b.comment not like '%email%' When SQL reaches the '%address it causes an error. Any thoughts? Thanks!! Mark Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now