Solved

T-SQL Edit Top 5000 Rows - Query?

Posted on 2016-09-09
1
40 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 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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

If you find yourself in this situation “I have used SELECT DISTINCT but I’m getting duplicates” then I'm sorry to say you are using the wrong SQL technique as it only does one thing which is: produces whole rows that are unique. If the results you a…
This article shows gives you an overview on SQL Server 2016 row level security. You will also get to know the usages of row-level-security and how it works
Using examples as well as descriptions, and references to Books Online, show the different Recovery Models available in SQL Server and explain, as well as show how full, differential and transaction log backups are performed
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function

809 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