You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Small update to Azure Data Studio MP README (#1900)
* 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 <SQLvariant@live.com>
* Update docs/azure_data_studio/README_FOR_MARKETPLACE.md
Co-Authored-By: SQLvariant <SQLvariant@live.com>
* Update docs/azure_data_studio/README_FOR_MARKETPLACE.md
Co-Authored-By: SQLvariant <SQLvariant@live.com>
* Apply suggestions from code review
Co-Authored-By: SQLvariant <SQLvariant@live.com>
* 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
In order to use these examples (below), you need to install the SqlServer module from the [PowerShell Gallery](https://www.powershellgallery.com/packages/SqlServer).
81
81
82
82
```powershell
83
-
Install-Module -Name SqlServer -AllowPrerelease
83
+
Install-Module -Name SqlServer
84
84
```
85
85
86
-
> 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.
86
+
> 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.
87
87
88
88
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.
ServerA 13.0.5233 SP2 CU4 Windows Windows Server 2016 Datacenter
100
+
ServerB 14.0.3045 RTM CU12 Linux Ubuntu
101
101
```
102
102
103
103
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.
0 commit comments