문제

In Toad for Oracle you can put the cursor on the name of a object and press F4 to open it's definition.

Is there anything similar in T-SQL / SQL Server Management Studio ides?

도움이 되었습니까?

해결책

I have developed SSMSBoost add-in for SQL Server Management Studio and it does exactly what you want. The shortcut is F2

다른 팁

If you want the definition of an object, the procedure sp_helptext will give that to you. As for assigning it to a keyboard shortcut in SSMS, you can do so by going to Tools → Options → Keyboard → Query Shortcuts and assigning sp_helptext to one of the available slots. Once that's done, highlight the name of an object in your query editor window, hit the assigned shortcut and it should display the definition. As someone mentioned above, sp_help will get you different information (i.e. columns, indexes, constraints, etc) if the object is a table or a view. Luckily, the same process applies to sp_help!

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top