开发者

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

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开发者_StackOverflow社区 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.


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.


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"

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

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

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

Step 3: Modify the query

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

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

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


The menu location seems to have changed to:

Query Designer --> Pane --> SQL


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜