Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to edit data in result grid in SQL Server Management Studio

Tags:

ssms

I want to edit some row values once I get a query output in the result grid. Its true that we can right click the table and say open table to get an editable table output, but what I want is editable query output, only certain rows matching for my criteria, and edit them in the result grid.

Can this possible inside Microsoft SQL server Management Studio Express?

like image 935
bi2mon Avatar asked Dec 28 '10 03:12

bi2mon


People also ask

How do I edit top 200 rows in SQL?

By right-clicking on the table name I select the command "Edit Top 200 Rows". By the way, the number of rows loaded with this command can be changed by the option "Tools > Options > SQL Server Object Explorer > Commands > Value for Edit top <n> Rows command". If 0 is entered, all rows or options are loaded.

How do I edit a data table in SQL?

To access the MySQL Table Editor, right-click a table name in the Navigator area of the sidebar with the Schemas secondary tab selected and click Alter Table. This action opens a new secondary tab within the main SQL Editor window.


1 Answers

Yes, This is possible. Right click on the table and Click on Edit Top 200 Rows as show in image below

enter image description here

Then click anywhere inside the result grid, to enable SQL Icon "Show Sql Pane". This will open sql editor for the table you opted to edit, here you can write your own sql query and then you can directly edit the result set of the query.

enter image description here

like image 56
Learning Avatar answered Oct 02 '22 10:10

Learning