Copy line numbers from SQL Server Management Studio

0

In SQL Server Management Studio, I've configured the Text Editor to show the line numbers, like so:

enter image description here

I want to move these into a word document for documentation. Right now if I were to highlight this piece of code, copy it, and paste it into word, I get this:

enter image description here

Is there an easy way for me to copy the contents, and preserve the line numbers?

brazilianldsjaguar

Posted 2014-03-17T20:26:28.717

Reputation: 103

Answers

2

No. But, you could put the content into a spreadsheet, have the first column enumerate the line numbers, and then paste this in your document.

The line numbers are not part of your content, they are part of the editor visualization features.

slybloty

Posted 2014-03-17T20:26:28.717

Reputation: 479

0

Notepad++ is an excellent program for doing this, however you may need to change the settings in order to show the line numbers.

Jared Westbrook

Posted 2014-03-17T20:26:28.717

Reputation: 1