Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Go To Definition Like Functionality in SQL SERVER

Is there is any Go To Definition like functionality in SQL SERVER which we use in Visual Studio. It's a little painful to browse and edit a SP or function. Any other quick way to edit will be appreciated.

like image 528
Imran Qadir Baksh - Baloch Avatar asked Feb 06 '12 05:02

Imran Qadir Baksh - Baloch


People also ask

How can I see all functions in SQL Server?

To get the list of all the functions in a database, you can use the transact SQL statement against the system objects like Sys. Objects, Information_Schema. Routines, syscomments or Sys. Sql_Modules.

How can I do like in SQL Server?

The SQL LIKE OperatorThe LIKE operator is used in a WHERE clause to search for a specified pattern in a column. There are two wildcards often used in conjunction with the LIKE operator: The percent sign (%) represents zero, one, or multiple characters. The underscore sign (_) represents one, single character.


4 Answers

Some third-party tools will help, such as:

  • redgate sql search (Free)
  • redgate sql prompt (Commercial, trialware) - very good one
  • others in Sql Toolbelt
like image 129
Oleg Dok Avatar answered Oct 21 '22 16:10

Oleg Dok


No. SQL Server objects don't fit into .net namespaces or object hierarchy

You can kind of emulate it with Red Gate SQL Search in SQL Server Management Studio. Or SSMS Tools Pack, but neither of these are for Visual Studio

like image 24
gbn Avatar answered Oct 21 '22 16:10

gbn


SQL Server 2012 seems to have this functionality. Tools --> Options --> Environment --> Keyboard --> Edit.GoToDefinition, which should be F12. If not, assign the key.

like image 36
Lysoll Avatar answered Oct 21 '22 15:10

Lysoll


Check out dbForge SQL complete: link - useful tool, has a trial, also free version but it doesn't contain go to definition functionality, only full version does.

like image 42
pfedotovsky Avatar answered Oct 21 '22 16:10

pfedotovsky