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
1.4m articles
1.4m replys
5 comments
57.0k users