![]() Give SQL Search a try and let us know what you think. One nice touch from ADS is that if you CTRL+Shift+P again, the SQL Search commands appear at the top as recently used items. We can keep the search results up as a separate pane, so that we can use this as a pick list if we were looking for all the dependent objects for an object. This is a limited use extension, but it does allow one to find code quicker than browsing through the Object Explorer. Then I right click in the window and select Copy. I can copy this code for another window if I click the start and end places in the search results while holding the Shift key. It’s for reference, which can be helpful when coding, but is of limited use. I can resize this as needed, but this is a view only pane. ![]() If I close the server pane and instead click View Definition, I get a split pane on the right with the object definition. I see whatever I had opened in the Servers Pane. Even if I open the Servers pane and then click “Reveal in Object Explorer”, nothing happens. I suspect that the call from the extension to the servers Object Explorer is flaky. We can highlight this object in our object explorer, which will, well, do nothing for me. If we click this, we have a couple of choices for what to do with our results. Next to the object name, there is a circle with an ellipsis. We see the type of the object and then the way the object was matched. The results show me that I have an object name along with the schema and database. The results will appear in a new tab alongside your currently open tabs. For me, I know there are a number of items in this database for blogs, so let’s enter that. Focus will be in this window, so you can type a term. If we click this one, we get a new edit box at the top of the window. The other command allows you to search the database. If you cannot find an object you need, then you might run the reindex. The re-index command will update the SQL Search index with information from the current database connection. These are the two items implemented at this time. There is a reindex command and a search command. If we type “SQL S”, we’ll get the SQL Search commands. ![]() This is a handy tool that you will use often. When you do this, you get a way to run commands at the top of the ADS window. To use this extension, you can use the CTRL+Shift+P command to bring up the command palette. You can see it installed if you re-open the extensions pane. You need to approve the extension and then reload once it’s installed. Installing extensions is basically using File | Install Extensions from VSIX and picking the downloaded file. For SQL Search, this is a Redgate Foundry page with a few builds. As with most extensions, the link takes you to a download page. There’s a description of SQL Search as well as a link to install the extension. My extensions pane is on the right, so my details are on the left. Redgate worked with them early on in the lifecycle of the product to get this extension working, including helping spec out the APIs for interaction with ADS. This is highlighted as a recommended extension from Microsoft. There are a limited number of extensions available for Azure Data Studio (ADS), but one that came out early is SQL Search.
0 Comments
Leave a Reply. |