SQL server 2012 SP_HELPTEXT extra lines issue

前端 未结 8 1775
生来不讨喜
生来不讨喜 2020-12-31 01:33

I am using SQL server 2012, & always use SP_HELPTEXT to get my previously created Stored Procedures, In previous versions of SQL server there were no issues

8条回答
  •  有刺的猬
    2020-12-31 01:55

    There are two type of solution which you can use for remove extra space from sp_helptext output

    1. Goto Tools>Option>Query Results>Result to text (From drop down list)
    2. Copy sp_helptext output Paste in Notepad++. open find and replace window by pressing cntl+H enter the following text to replace with new text as in given picture. enter image description here

提交回复
热议问题