2012-12-21 30 views
2

我們有大量的存儲過程。每當我添加一個新的,我必須一直到存儲過程的頂部,然後點擊右鍵並點擊「刷新」。有沒有一個熱鍵來刷新表和存儲過程列表?我到處都是Google搜索。 MS認爲開發人員哪裏只有幾個?我知道這聽起來微不足道,但是當你創建很多存儲過程時,它會讓你感到痛苦,並且不斷滾動到頂部並刷新刷新,然後才能將其拉出來執行測試。我正在使用SQL 2008 R2。是否有熱鍵來刷新SQL 2008 R2中的存儲過程?

+2

F5在列表中不工作? – Oded

+0

據我所知,沒有快速或簡單的刷新方法。您可以使用[RedGate SQL Search](http://www.red-gate.com/products/sql-development/sql-search/)(免費)快速查找過程。該功能是「在對象瀏覽器中選擇對象」 – Andomar

+1

@Oded:如果您選擇了一個過程,F5僅刷新所選過程。它不會添加或刪除程序 – Andomar

回答

5

沒有快捷鍵來刷新列表。但是,左箭頭會將您引導至父節點。因此,如果突出顯示某個過程,則按下箭頭鍵,然後按F5將刷新過程。但是,你仍然必須再次找到新的。

+0

謝謝。什麼是MS的思想.... – user1830640

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刷新。

准許這是實現它的長途。使用鼠標可能會更容易。但是,如果您正在使用沒有鼠標的服務器,則鍵盤導航至關重要。

+0

是的,只需滾動幾百行即可:( – user1830640

相關問題