2

我们有大量的存储过程。每次我添加一个新的,我必须一直走到存储过程的顶部,然后右键单击并点击“刷新”。是否有刷新表和存储过程列表的热键?我到处都用谷歌搜索过。MS 是否认为开发人员只会有几个?我知道这听起来微不足道,但是当您创建许多存储过程并且必须不断滚动到顶部并点击刷新才能将其拉起以执行它以对其进行测试时,这是一件很痛苦的事情。我正在使用 SQL 2008 R2。

4

2 回答 2

5

没有刷新列表的键盘快捷键。但是,左箭头将您带到父节点。因此,如果您突出显示了一个程序,按向左箭头,然后按 F5 将刷新程序。但是你仍然必须再次找到新的。

于 2012-12-21T14:43:35.037 回答
1

没有从查询窗口刷新过程列表的快捷方式。

下面是 SQL Server Management Studio 的快捷方式列表:

http://technet.microsoft.com/en-us/library/ms174205.aspx

但是,如果您不想右键单击刷新,而只使用键盘,您可以执行以下操作:

1. Create your procedure

2. ALT-F8 (This will navigate your selection to your object explorer window, and highlight your connected server)

3. Start typing the first letter of the database you are working in. This will highlight that database. Use the right arrow to expand, if not already expanded.

4. Then type P for Programmability, and that will highlight that list. Again, use the right arrow to expand if not already expanded.

5. Then type S for Stored Procedures. 

6. Hit F5, and it will refresh your list.

另一种方法是您可以简单地按 ALT F8,然后使用箭头键导航到您的节点,然后按 F5 刷新。

当然,这是很长的路要走。使用鼠标可能更容易。但是,如果您在没有鼠标的服务器上工作,则键盘导航是必不可少的。

于 2012-12-21T14:40:28.093 回答