Skip to content

Commit

Permalink
[ignore] missed vscode reference
Browse files Browse the repository at this point in the history
  • Loading branch information
TylerLeonhardt committed Mar 13, 2019
1 parent 910bd62 commit 4e061ea
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions docs/azure_data_studio/README_FOR_MARKETPLACE.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,10 @@ or if you're using the preview version of the extension
$HOME/.azuredatastudio/extensions/ms-vscode.powershell-preview-<version>/examples
```

To open/view the extension's examples in Visual Studio Code, run the following from your PowerShell command prompt:
To open/view the extension's examples in Azure Data Studio, run the following from your PowerShell command prompt:

```powershell
code (Get-ChildItem $Home\.azuredatastudio\extensions\ms-vscode.PowerShell-*\examples)[-1]
azuredatastudio (Get-ChildItem $Home\.azuredatastudio\extensions\ms-vscode.PowerShell-*\examples)[-1]
```

### SQL PowerShell Examples
Expand All @@ -82,6 +82,8 @@ In order to use these examples (below), you need to install the SqlServer module
Install-Module -Name SqlServer -AllowPrerelease
```

> NOTE: With version `21.1.18095-preview` and up, the `SqlServer` module supports [PowerShell Core](https://github.com/PowerShell/PowerShell) 6.2 and up in addion to Windows PowerShell.
In this example, we use the `Get-SqlInstance` cmdlet to Get the Server SMO objects for ServerA & ServerB. The default output for this command will include the Instance name, version, Service Pack, & CU Update Level of the instances.

```powershell
Expand All @@ -97,7 +99,7 @@ ServerA 13.0.5233 SP2 CU4
ServerB 14.0.3045 RTM CU12
```

In this example, we will do a `dir` (alias for `Get-ChildItem`) to get the list of all SQL Server instances listed in your Registered Servers file, and then use the `Get-SqlDatabase` cmdlet to get a list of Databases for each of those instances.
In the following example, we will do a `dir` (alias for `Get-ChildItem`) to get the list of all SQL Server instances listed in your Registered Servers file, and then use the `Get-SqlDatabase` cmdlet to get a list of Databases for each of those instances.

```powershell
dir 'SQLSERVER:\SQLRegistration\Database Engine Server Group' -Recurse |
Expand Down

0 comments on commit 4e061ea

Please sign in to comment.