How to edit one specific row in Microsoft SQL Server Management Studio 2008?

Sql Server-2008Ssms

Sql Server-2008 Problem Overview


In Microsoft SQL Server Management Studio 2008, is there a secret to be able to edit one row based on a key?

There's an option to do "Edit Top 200 Rows", but what if I want to select some other row and edit it in the datagrid? I would rather do that than code an update statement and risk messing up the where clause.

Sql Server-2008 Solutions


Solution 1 - Sql Server-2008

Use the "Edit top 200" option, then click on "Show SQL panel", modify your query with your WHERE clause, and execute the query. You'll be able to edit the results.

Solution 2 - Sql Server-2008

How to edit one specific row/tuple in Server Management Studio 2008/2012/2014/2016

Step 1: Right button mouse > Select "Edit Top 200 Rows"

Edit top 200 rows

Step 2: Navigate to Query Designer > Pane > SQL (Shortcut: Ctrl+3)

Navigate to Query Designer > Pane > SQL

Step 3: Modify the query

Modify the query

Step 4: Right button mouse > Select "Execute SQL" (Shortcut: Ctrl+R)

enter image description here

Solution 3 - Sql Server-2008

The menu location seems to have changed to:

Query Designer --> Pane --> SQL

Solution 4 - Sql Server-2008

If you are facing challenges in saving data from the results pane after using Edit Top 200 Rows option, then the below steps are for you:

  1. Run the query or view that has the data you want to edit.
  2. Navigate to the cells containing the data you want to change.
  3. Type in the new data.
  4. Save your changes by leaving the row.

Ref: MS Docs

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionNealWaltersView Question on Stackoverflow
Solution 1 - Sql Server-2008NestorView Answer on Stackoverflow
Solution 2 - Sql Server-2008ѺȐeallүView Answer on Stackoverflow
Solution 3 - Sql Server-2008ShawnView Answer on Stackoverflow
Solution 4 - Sql Server-2008Mayur SanerView Answer on Stackoverflow