I have a varchar column that contains the string lol cats, however, in SQL Management Studio it shows up as lol cats.
lol cats
How can I check if the is there or not?
SELECT * FROM your_table WHERE your_column LIKE '%' + CHAR(10) + '%'
Or...
SELECT * FROM your_table WHERE CHARINDEX(CHAR(10), your_column) > 0
2.1m questions
2.1m answers
60 comments
57.0k users