Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I love the "new" feature to script data as well as schema from SQL Server 2008 and forward.

However, I would like to script only a few 100 rows of a gigantic table (ie rows that match a query).

Is that possible?

share|improve this question
up vote 1 down vote accepted

Yes, It is possible if you use SSMSToolsPack that is a free plugin to SSMS. I use this and also asked several of my developers to use also. It has other excellent features as well as like storing the history of queries you run, color coding your servers and among others. You should at-least give it a try.

share|improve this answer
Very nice tool, I did not know about. – Kjensen May 13 '11 at 11:24

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.