Executing Queries
Executing Queries
You have 3 methods to execute queries. Run from selection, run from bookmarks, run from history.
TIP: You can also set a connection to run queries against it in the first line of the file using -- @conn ConnectionName
.
Running from a file/selection
- With an open file, select the queries you want to run.
- Select
SQLTools: Run Query
from command palette. - Wait for the results to show up.
Running from bookmarks
- Select
SQLTools Bookmarks: Run
from command palette. - Pick the query you want from the list.
- Wait for the results to show up.
Running from history
- Select
SQLTools History: Run
from command palette. - Pick the query you want from the list.
- Wait for the results to show up.