Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save pavankjadda/9c246fcbf8be599b02a7fdd96906a24d to your computer and use it in GitHub Desktop.
Save pavankjadda/9c246fcbf8be599b02a7fdd96906a24d to your computer and use it in GitHub Desktop.
Remove line break or new line from column in SQL Server

Use the followng query to replace line break or new lines from column in SQL Server.

Replace <TABLE_NAME> and <COLUMN_NAME> place holders with actual values

update <TABLE_NAME> set <COLUMN_NAME>=Replace(Replace(<COLUMN_NAME>,CHAR(10),''),CHAR(13),'');

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment