11 January 2010 08:20
tonyrogerson
Removing blank line in SSMS (Management Studio) Find and Replace dialogue
Yes, copying between word and email always puts an extra line between code lines which makes the code hard to read.
The answer is simple; in Management Studio go into Find and Replace, in "Find Options" check "Use" and select "Regular Expressions".
Now, in the Find what: box enter the text ^\n
In the Replace with: box enter nothing, please don't take me literally on that and actually type the word nothing, I mean leave the text box empty.
Click Replace All.
Da dah!
Filed under: SQL Development