Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

T-SQL Edit Top 5000 Rows - Query?

Posted on 2016-09-09
1
Medium Priority
?
54 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 2000 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 Backup Tool for VMware and Hyper-V

Restore full virtual machine or individual guest files from 19 common file systems directly from the backup file. Schedule VM backups with PowerShell scripts. Set desired time, lean back and let the script to notify you via email upon completion.  

Question has a verified solution.

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

This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
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

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