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

NealWalters picture NealWalters · Nov 13, 2009 · Viewed 101.1k times · Source

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.

Answer

Nestor picture Nestor · Nov 13, 2009

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.