Solved

T-SQL Edit Top 5000 Rows - Query?

Posted on 2016-09-09
1
44 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 70

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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
push and Pull replication 31 46
Help needed in sql query 4 26
Display field if column exists 7 32
Make an array show the subkey and put it in a query 2 22
JSON is being used more and more, besides XML, and you surely wanted to parse the data out into SQL instead of doing it in some Javascript. The below function in SQL Server can do the job for you, returning a quick table with the parsed data.
In this article we will learn how to fix  “Cannot install SQL Server 2014 Service Pack 2: Unable to install windows installer msi file” error ?
Via a live example, show how to set up a backup for SQL Server using a Maintenance Plan and how to schedule the job into SQL Server Agent.
Viewers will learn how to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.

735 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