Solved

T-SQL Edit Top 5000 Rows - Query?

Posted on 2016-09-09
1
36 Views
Last Modified: 2016-09-14
Once in a while, I need to make a few modifications on a handful of records... I'd prefer to SEE the records, by using the Edit Top 5000 Rows, however I only need to see 5-10. Is there a way to write a query that will display 5-10 records that will also allow me to edit?

Thanks,

E.D.
0
Comment
Question by:edalzell01
1 Comment
 
LVL 69

Accepted Solution

by:
Éric Moreau earned 500 total points
ID: 41791754
the top 5000 you are referring to can be adjusted (the default is actually 200). Check this image captured from SSMS 2016:
setting the number of rows to edit
Also, once the original query has been executed, you can use the "Show SQL Pane" button to change the number from the TOP (xxx) clause to the value you want.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Introduction SQL Server Integration Services can read XML files, that’s known by every BI developer.  (If you didn’t, don’t worry, I’m aiming this article at newcomers as well.) But how far can you go?  When does the XML Source component become …
If you have heard of RFC822 date formats, they can be quite a challenge in SQL Server. RFC822 is an Internet standard format for email message headers, including all dates within those headers. The RFC822 protocols are available in detail at:   ht…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Via a live example, show how to extract information from SQL Server on Database, Connection and Server properties

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now