MyTechMantra.com

How to Change Select Top 1000 Rows and Edit Top 200 Rows Default Value in SQL Server Management Studio

Introduction

Starting SQL Server 2008, SSMS allows you to Select Top 1000 rows and Edit Top 200 rows. However, in the previous version of SSMS 2005, the only option was to open the entire table. Let us see how to alter select top 1000 rows and edit top 200 rows default value in SSMS.

How to Change Select Top 1000 Rows in SQL Server
How to Change Select Top 1000 Rows in SQL Server

Steps to ALTER Select Top 1000 Rows and Edit Top 200 Rows Default Value in SQL Server Management Studio

1. Open SSMS, under Tools, click Options as shown in the snippet below.

Options Tab in SSMS
Options Tab in SSMS

2. To make the necessary changes within the Options Dialog box, Expand SQL Server Object Explorer -> Commands.

3. Specify the new value for Value for Edit Top Rows Command and Specify the Value for Select Top Rows Command. In the below example we have set the value as 50 for both options.

Value for Edit Top <n> Rows Command
Change Select Top 1000 Rows and Edit Top 200 Rows Default Value in SQL Server Management Studio

Related Articles

  • Display Line Numbers in SQL Server Management Studio (SSMS)
  • Performance Dashboard Reports in SQL Server 2012
  • How to Use Dedicated Administrator Connection in SQL Server
  • How to Migrate Existing Database to Partially Contained Database in SQL Server
  • How to Configure Network Drive to be Visible for SSMS to Perform Database Backup and Restore?
  • How to Configure PAGE_VERIFY Option as CHECKSUM for all Databases in a SQL Server Instance

4. Finally to save the changes click OK to save the changes to SSMS configuration.

5. Once you have made the above mentioned changes right click the table to see the changes as shown in the snippet below.

Select Top n Rows and Edit Top n Rows Default Value in SQL Server Management Studio
Select Top n Rows and Edit Top n Rows Default Value in SQL Server Management Studio

Ashish Mehta

Ashish Mehta

Ashish Kumar Mehta is a database manager, trainer and technical author. He has more than a decade of IT experience in database administration, performance tuning, database development and technical training on Microsoft SQL Server from SQL Server 2000 to SQL Server 2014. Ashish has authored more than 325 technical articles on SQL Server across leading SQL Server technology portals. Over the last few years, he has also developed and delivered many successful projects in database infrastructure; data warehouse and business intelligence; database migration; and upgrade projects for companies such as Hewlett-Packard, Microsoft, Cognizant and Centrica PLC, UK. He holds an engineering degree in computer science and industry standard certifications from Microsoft including MCITP Database Administrator 2005/2008, MCDBA SQL Server 2000 and MCTS .NET Framework 2.0 Web Applications.

Newsletter Signup!



Follow us

Don't be shy, get in touch. We love meeting interesting people and making new friends.

Recent SQL Server Tips

Manning