I want to put code in a single line that will create a stored procedure that contains newlines.
- Is that possible?
- Do I need to use sp_executesql?
- How do I escape newlines in a sql statement?
- How do I escape newlines in a string?
dynamic-sqlsql serverstored-procedurest-sql
I want to put code in a single line that will create a stored procedure that contains newlines.
Best Answer
Yes, you can do something like this with dynamic SQL: