I am entering error information into an ErrorLog table in my database. I have a utility class to do this:
ErrorHandler.Error(\"Something has broken!!\\n\\nDe
No need to replace string input\output, you need just pick up correct option:
Tools -> Options... > Query Results > SQL Server > Results to Grid set "Retain CR\LF on copy or save" to true.
And don't forget to restart your management studio!
according Charles Gagnon answer