Skip to content

Instantly share code, notes, and snippets.

@vsshs
Last active November 13, 2015 15:53
Show Gist options
  • Save vsshs/f13bf2459e615e5a90a9 to your computer and use it in GitHub Desktop.
Save vsshs/f13bf2459e615e5a90a9 to your computer and use it in GitHub Desktop.
select values with newline symbols
DECLARE @NewLineChar AS CHAR(2) = CHAR(13) + CHAR(10)
SELECT *
FROM <tablename>
WHERE <fieldname> like '%'+@NewLineChar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment