Skip to content

Commit

Permalink
Small update to Azure Data Studio MP README (PowerShell#1900)
Browse files Browse the repository at this point in the history
* Added SQL PowerShell Examples

Added examples specific to the official SqlServer PowerShell module, to help customers get started.

* Update Code Formatting

Updated the format of the code examples.

* Moved SQL PowerShell Examples

Moved location of SQL PowerShell Examples to be after Example Scripts.

* Typo

Fixed typo in description.

* Commas

Commas.

* Update docs/azure_data_studio/README_FOR_MARKETPLACE.md

Co-Authored-By: SQLvariant <[email protected]>

* Update docs/azure_data_studio/README_FOR_MARKETPLACE.md

Co-Authored-By: SQLvariant <[email protected]>

* Update docs/azure_data_studio/README_FOR_MARKETPLACE.md

Co-Authored-By: SQLvariant <[email protected]>

* Apply suggestions from code review

Co-Authored-By: SQLvariant <[email protected]>

* Update README_FOR_MARKETPLACE.md

Removed the  -AllowPrerelease parameter since it is no longer necessary.  Also updated the Get-SqlInstance sample output with the additional properties now being returned.

* delete duplicate examples
  • Loading branch information
SQLvariant authored and TylerLeonhardt committed Apr 18, 2019
1 parent 58349e7 commit 861b999
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions docs/azure_data_studio/README_FOR_MARKETPLACE.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,10 @@ azuredatastudio (Get-ChildItem $Home\.azuredatastudio\extensions\ms-vscode.Power
In order to use these examples (below), you need to install the SqlServer module from the [PowerShell Gallery](https://www.powershellgallery.com/packages/SqlServer).

```powershell
Install-Module -Name SqlServer -AllowPrerelease
Install-Module -Name SqlServer
```

> 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.
> NOTE: With version `21.1.18102` 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.

Expand All @@ -94,10 +94,10 @@ Get-SqlInstance -ServerInstance ServerA, ServerB
Here is a sample of what that output will look like:

```
Instance Name Version ProductLevel UpdateLevel
------------- ------- ------------ -----------
ServerA 13.0.5233 SP2 CU4
ServerB 14.0.3045 RTM CU12
Instance Name Version ProductLevel UpdateLevel HostPlatform HostDistribution
------------- ------- ------------ ----------- ------------ ----------------
ServerA 13.0.5233 SP2 CU4 Windows Windows Server 2016 Datacenter
ServerB 14.0.3045 RTM CU12 Linux Ubuntu
```

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.
Expand Down

0 comments on commit 861b999

Please sign in to comment.