编辑结果网格中的数据
我想直接从 ssms 中的结果网格编辑数据。 例如: 当我执行 SELECT TOP 10 * FROM some_table 时,我想直接从结果网格编辑数据。 我不想打开 some_table
并从那里进行编辑。 我知道结果网格是只读的,但也许有人为其编写了插件。
I would like to edit data directly from result grid in ssms. eg:
When I execute SELECT TOP 10 * FROM some_table
, I want to edit data directly from result grid.
I don't want to open some_table
and edit from there.
I know that result grid is read-only, but maybe someone written addin for it.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(7)
SQL Server 无法访问!
当您运行查询并获取结果时 - 这正是您正在做的事情,读取数据,而不是打开表进行编辑。 您能想象允许编辑结果窗口所需的事务控制吗? 锁定可能会使 SQL 停止运行 - 我希望没有人会编写这种插件!
SQL Server ISN'T Access!
When you run a query and get the results - thats exactly what you are doing, reading the data, not opening the table for editing. Can you imagine the necessary transactional control around allowing the results window to be edited? The locking would probably grind SQL to a halt - I hope no-one ever writes that kind of add-in!
“结果”窗格不仅仅是结果。
等等
这就是它们分开的原因。
随意编写您自己的加载项 :-) 或此处
The "results" pane is not just results.
etc
This is why they are separate.
Feel free to write your own add-in :-) Or here
如果右键单击表并选择编辑前 200 条记录,则会生成一个带有查询的结果屏幕。
添加您的查询,然后您可以在结果屏幕中编辑记录。
您也可以将 200 更改为您想要的数字 (2000)。
If you right click on the table and choose edit top 200 records, it produces a result screen with an query.
Add to this your query and then you can edit the records in the result screen.
Also you can change the 200 to a number you want (2000).
SQL Server 的 EMS SQL Manager 允许直接在结果网格内更新数据。
这个工具对于输入新请求来说很无聊(智能感知和错误管理很差),但对此来说还不错。 我总是打开这两个工具。
EMS SQL Manager for SQL Server allows to update data directly inside a results grid.
This tool is boring for typing new requests (poor intellisense and error management) but fine for this. I always have the two tools opened.
我是 SQL Server 新手,在之前的工作中使用过 All Round Automations 的 Oracle 产品“PL/SQL Developer”...它允许您在查询窗口中执行 SELECT,然后只需添加“FOR UPDATE”到精炼 SQL SELECT 和“ta-da”结束时,您现在可以在漂亮的网格中编辑结果。 无需打开表视图,单击 SQL 按钮,粘贴您正在处理的 SQL,然后点击执行;)
I'm new to SQL Server and have used the Oracle product 'PL/SQL developer' by All Round Automations at a previous job... It would allow you to do a SELECT in the query window and then simply add "FOR UPDATE" to the end of your refined SQL SELECT and 'ta-da' you can now edit the results in a nice grid. No need to Open Table View, click the SQL button, paste in the SQL you you have been working on and then hit execute ;)
我有一个非常大的数据库(70+ GB),有很多表。
我正在使用 Red Gate 的 SQL 重构来进行智能感知和其他一些事情。
每次需要更改单个字段时都输入 update sql 语句真是太无聊了。
在对象资源管理器中找到该表也需要一些时间。
当我使用“显示 SQL 窗格”时,智能感知不起作用。
I have very large database (70+ GB) with so many tables.
I'm using Red Gate's SQL refactor for intellisense and few other things.
It's so boring to type in update sql statements every time I need to change single field.
It also takes some time to find that table in the Object explorer.
Intellisense doesn't work when I use "Show SQL Pane".
您无法在结果网格内编辑数据。 如果您想手动编辑数据而不是使用 UPDATE/INSERT SQL 语句,则必须通过“打开表”路线。
您是否有特别想要使用结果网格的原因?
您可以在通过打开表时指定查询来限制结果(如果这是您的原因)? 您需要选择顶部工具栏中的“显示 SQL 窗格”按钮(写有“SQL”的方框)。
You can't edit the data from within the result grid. You'd have to go via the "open table" route if you want to edit the data manually instead of using UPDATE/INSERT SQL statements.
Is there a reason you specifically want to use the result grid instead?
You can specify a query when you go via open table to limit the results if that's your reason? There's a "Show SQL Pane" button in the top toolbar you need to select (square box with "SQL" written in it).