| title | Navigate Between Scripts | |
|---|---|---|
| ms.prod | sql | |
| ms.technology | ssdt | |
| ms.topic | conceptual | |
| f1_keywords |
|
|
| ms.assetid | 8664bde5-86ff-4e8b-b5a6-af003316f6ad | |
| author | markingmyname | |
| ms.author | maghan | |
| manager | jroth | |
| ms.reviewer | “” | |
| ms.custom | seo-lt-2019 | |
| ms.date | 02/09/2017 |
The Transact-SQL Editor for offline development provides two useful navigation tools that are familiar to Visual Studio users: Go To Definition and Find All References. For example, you can right-click a table name and use "Find All References" to list all references to the table in the project. You can double-click a search result to go to the specific code file. In this file, you can right-click the table name again, and choose "Go to Definition" to go back to the table definition.
Warning
The following procedure uses entities created in previous procedures in the Connected Database Development and Project-Oriented Offline Database Development sections.
-
Expand the Functions folder in Solution Explorer and double-click GetProductsBySupplier.sql.
-
Right-click
Productsin this line of code and select Go To DefinitionSELECT * from Products p -
Products.sql is automatically opened, showing the location where the
Productstype is defined. -
Go back to GetProductsBySupplier.sql. This time select Find All References in the contextual menu for
Products. In the Find Symbol Results pane, you will see a list of locations where theProductstable is referenced. Double-clicking any of the search results will bring you to the location of the reference.