Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

Commit 3473139

Browse files
committed
Links: SQL - powershell
1 parent 63f6cfa commit 3473139

6 files changed

Lines changed: 17 additions & 18 deletions

docs/powershell/download-sql-server-ps-module.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ There are two SQL Server PowerShell modules:
3030
3131
For help topics, go to:
3232

33-
- [SqlServer](https://docs.microsoft.com/powershell/module/sqlserver) cmdlets.
34-
- [SQLPS](https://docs.microsoft.com/powershell/module/sqlps) cmdlets.
33+
- [SqlServer](/powershell/module/sqlserver) cmdlets.
34+
- [SQLPS](/powershell/module/sqlps) cmdlets.
3535

3636
## SQL Server Management Studio
3737

@@ -44,7 +44,7 @@ For help topics, go to:
4444

4545
[Azure Data Studio](../azure-data-studio/download-azure-data-studio.md) doesn't install either PowerShell module. To use PowerShell with Azure Data Studio, install the **SqlServer** module from the [PowerShell Gallery](https://www.powershellgallery.com/packages/Sqlserver).
4646

47-
You can use the [PowerShell extension](../azure-data-studio/powershell-extension.md), which provides rich PowerShell editor support in Azure Data Studio.
47+
You can use the [PowerShell extension](../azure-data-studio/extensions/powershell-extension.md), which provides rich PowerShell editor support in Azure Data Studio.
4848

4949
## Installing or updating the SqlServer module
5050

@@ -113,7 +113,7 @@ Uninstall-module -Name SQLServer -RequiredVersion "<version number>" -AllowClobb
113113

114114
### Troubleshooting
115115

116-
If you run into problems installing, see the [Install-Module documentation](https://www.powershellgallery.com/packages/PowerShellGet/2.2.1) and [Install-Module reference](https://docs.microsoft.com/powershell/module/powershellget/Install-Module).
116+
If you run into problems installing, see the [Install-Module documentation](https://www.powershellgallery.com/packages/PowerShellGet/2.2.1) and [Install-Module reference](/powershell/module/powershellget/Install-Module).
117117

118118
## Using a specific version of the SqlServer module
119119

docs/powershell/manage-authentication-in-database-engine-powershell.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,5 +88,5 @@ Invoke-Sqlcmd -Query "SELECT GETDATE() AS TimeOfQuery;" -ServerInstance "MyCompu
8888

8989
- [SQL Server PowerShell](sql-server-powershell.md)
9090
- [SQL Server PowerShell Provider](sql-server-powershell-provider.md)
91-
- [Invoke-Sqlcmd cmdlet](https://docs.microsoft.com/powershell/module/sqlserver/invoke-sqlcmd)
92-
- [Use PowerShell with Azure Data Studio](../azure-data-studio/extensions/powershell-extension.md)
91+
- [Invoke-Sqlcmd cmdlet](/powershell/module/sqlserver/invoke-sqlcmd)
92+
- [Use PowerShell with Azure Data Studio](../azure-data-studio/extensions/powershell-extension.md)

docs/powershell/query-expressions-and-uniform-resource-names.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,4 +165,4 @@ Server[@Name='MYCOMPUTER']/Database[@Name='AdventureWorks2012"]/Table[Not(is_nul
165165
## See Also
166166

167167
- [Invoke-PolicyEvaluation cmdlet](invoke-policyevaluation-cmdlet.md)
168-
- [SQL Server Audit &#40;Database Engine&#41;](../relational-databases/security/auditing/sql-server-audit-database-engine.md)
168+
- [SQL Server Audit &#40;Database Engine&#41;](../relational-databases/security/auditing/sql-server-audit-database-engine.md)

docs/powershell/sql-server-powershell-provider.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,11 @@ Products whose data or object models can be represented in a hierarchy use Windo
4343
|`SQLSERVER:\SQLPolicy`|<xref:Microsoft.SqlServer.Management.Dmf><br /><br /> <xref:Microsoft.SqlServer.Management.Facets>|Policy-based management objects, such as policies and facets.|
4444
|`SQLSERVER:\SQLRegistration`|<xref:Microsoft.SqlServer.Management.RegisteredServers><br /><br /> <xref:Microsoft.SqlServer.Management.Smo.RegSvrEnum>|Registered server objects, such as server groups and registered servers.|
4545
|`SQLSERVER:\Utility`|<xref:Microsoft.SqlServer.Management.Utility>|Utility objects, such as managed instances of the [!INCLUDE[ssDE](../includes/ssde-md.md)].|
46-
|`SQLSERVER:\DAC`|[Microsoft.SqlServer.Management.Dac](https://docs.microsoft.com/previous-versions/sql/sql-server-2012/ee212127(v=sql.110))|Data-tier application objects such as DAC packages, and operations such as deploying a DAC.|
46+
|`SQLSERVER:\DAC`|[Microsoft.SqlServer.Management.Dac](/previous-versions/sql/sql-server-2012/ee212127(v=sql.110))|Data-tier application objects such as DAC packages, and operations such as deploying a DAC.|
4747
|`SQLSERVER:\DataCollection`|<xref:Microsoft.SqlServer.Management.Collector>|Data collector objects, such as collection sets and configuration stores.|
4848
|`SQLSERVER:\SSIS`|<xref:Microsoft.SqlServer.Management.IntegrationServices>|[!INCLUDE[ssISnoversion](../includes/ssisnoversion-md.md)] objects such as projects, packages, and environments.|
4949
|`SQLSERVER:\XEvent`|<xref:Microsoft.SqlServer.Management.XEvent>|SQL Server Extended Events|
50-
|`SQLSERVER:\DatabaseXEvent`|[Microsoft.SqlServer.Management.XEventDbScoped](https://docs.microsoft.com/dotnet/api/microsoft.sqlserver.management.xeventdbscoped)|SQL Server Extended Events|
50+
|`SQLSERVER:\DatabaseXEvent`|[Microsoft.SqlServer.Management.XEventDbScoped](/dotnet/api/microsoft.sqlserver.management.xeventdbscoped)|SQL Server Extended Events|
5151
|`SQLSERVER:\SQLAS`|<xref:Microsoft.AnalysisServices>|[!INCLUDE[ssASnoversion](../includes/ssasnoversion-md.md)] objects such as cubes, aggregations, and dimensions.|
5252

5353
For example, you can use the SQLSERVER:\SQL folder to start paths that can represent any object that is supported by the SMO object model. The leading part of a SQLSERVER:\SQL path is SQLSERVER:\SQL\\*ComputerName*\\*InstanceName*. The nodes after the instance name alternate between object collections (such as *Databases* or *Views*) and object names (such as AdventureWorks2012). Schemas are not represented as object classes. When you specify the node for a top-level object in a schema, such as a table or view, you must specify the object name in the format *SchemaName.ObjectName*.
@@ -73,7 +73,7 @@ SQLSERVER:\SQL\localhost\DEFAULT\Databases\AdventureWorks2012\Tables\Purchasing.
7373
|----------------------|-----------|
7474
|Describes how to use Windows PowerShell cmdlets to navigate through the nodes in a path, and at each node get a list of the objects at that node.|[Navigate SQL Server PowerShell Paths](navigate-sql-server-powershell-paths.md)|
7575
|Describes how to use the SMO methods and properties to report on and perform work on the object represented by a node in a path. Also describes how to get a list of the SMO methods and properties for that node.|[Work With SQL Server PowerShell Paths](work-with-sql-server-powershell-paths.md)|
76-
|Describes how to convert a SMO Uniform Resource Name (URN) to a SQL Server provider path.|[Convert URNs to SQL Server Provider Paths](https://docs.microsoft.com/powershell/module/sqlserver/Convert-UrnToPath)|
76+
|Describes how to convert a SMO Uniform Resource Name (URN) to a SQL Server provider path.|[Convert URNs to SQL Server Provider Paths](/powershell/module/sqlserver/Convert-UrnToPath)|
7777
|Describes how to open SQL Server Authentication connections by using the [!INCLUDE[ssNoVersion](../includes/ssnoversion-md.md)] provider. By default, the provider uses Windows Authentication connections made using the credentials of the Windows account running the Windows PowerShell session.|[Manage Authentication in Database Engine PowerShell](manage-authentication-in-database-engine-powershell.md)|
7878

7979
## Next steps

docs/powershell/sql-server-powershell.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ This section applies to scripts executed from PowerShell and not the SQL Agent.
4848

4949
The **SqlServer** module comes with:
5050

51-
- [PowerShell Providers](https://docs.microsoft.com/powershell/module/microsoft.powershell.core/about/about_providers), which enables a simple navigation mechanism similar to file system paths. You can build paths similar to file system paths, where the drive is associated with a SQL Server management object model, and the nodes are based on the object model classes. You can then use familiar commands such as **cd** and **dir** to navigate the paths similar to the way you navigate folders in a command prompt window. You can use other commands, such as **ren** or **del**, to perform actions on the nodes in the path.
51+
- [PowerShell Providers](/powershell/module/microsoft.powershell.core/about/about_providers), which enables a simple navigation mechanism similar to file system paths. You can build paths similar to file system paths, where the drive is associated with a SQL Server management object model, and the nodes are based on the object model classes. You can then use familiar commands such as **cd** and **dir** to navigate the paths similar to the way you navigate folders in a command prompt window. You can use other commands, such as **ren** or **del**, to perform actions on the nodes in the path.
5252

5353
- A set of cmdlets that support actions such as running a **sqlcmd** script containing Transact-SQL or XQuery statements.
5454

@@ -62,7 +62,7 @@ SQL PowerShell cmdlets can be used to manage instances of Azure SQL Database, Az
6262

6363
The **Encode-Sqlname** and **Decode-Sqlname** cmdlets help you specify SQL Server identifiers that contain characters not supported in PowerShell paths. For more information, see [SQL Server Identifiers in PowerShell](sql-server-identifiers-in-powershell.md).
6464

65-
Use the **Convert-UrnToPath** cmdlet to convert a Unique Resource Name for a Database Engine object to a path for the SQL Server PowerShell provider. For more information, see [Convert URNs to SQL Server Provider Paths](https://docs.microsoft.com/powershell/module/sqlserver/Convert-UrnToPath).
65+
Use the **Convert-UrnToPath** cmdlet to convert a Unique Resource Name for a Database Engine object to a path for the SQL Server PowerShell provider. For more information, see [Convert URNs to SQL Server Provider Paths](/powershell/module/sqlserver/Convert-UrnToPath).
6666

6767
## Query Expressions and Unique Resource Names
6868

@@ -81,11 +81,11 @@ Import-Module -Name SqlServer
8181

8282
## Cmdlet reference
8383

84-
- [SqlServer cmdlets](https://docs.microsoft.com/powershell/module/sqlserver)
85-
- [SQLPS cmdlets](https://docs.microsoft.com/powershell/module/sqlps)
84+
- [SqlServer cmdlets](/powershell/module/sqlserver)
85+
- [SQLPS cmdlets](/powershell/module/sqlps)
8686

8787
## Next steps
8888

8989
- [Download SQL Server PowerShell Module](download-sql-server-ps-module.md)
90-
- [SQL Server PowerShell cmdlets](https://docs.microsoft.com/powershell/module/sqlserver)
90+
- [SQL Server PowerShell cmdlets](/powershell/module/sqlserver)
9191
- [Use PowerShell with Azure Data Studio](../azure-data-studio/extensions/powershell-extension.md)

docs/powershell/work-with-sql-server-powershell-paths.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ After you navigate to a node in a [!INCLUDE[ssDE](../includes/ssde-md.md)] provi
2727

2828
- You can call the methods from the associated [!INCLUDE[ssNoVersion](../includes/ssnoversion-md.md)] management object model, such as SMO. For example, if you navigate to the Databases node in a path, you can use the methods and properties of the <xref:Microsoft.SqlServer.Management.Smo.Database> class.
2929

30-
The [!INCLUDE[ssNoVersion](../includes/ssnoversion-md.md)] provider is used to manage the objects in an instance of the [!INCLUDE[ssDE](../includes/ssde-md.md)]. It is not used to work with the data in databases. If you have navigated to a table or view, you cannot use the provider to select, insert, update, or delete data. Use the **Invoke-Sqlcmd** cmdlet to query or change data in tables and views from the Windows PowerShell environment. For more information, see [Invoke-Sqlcmd cmdlet](invoke-sqlcmd-cmdlet.md).
30+
The [!INCLUDE[ssNoVersion](../includes/ssnoversion-md.md)] provider is used to manage the objects in an instance of the [!INCLUDE[ssDE](../includes/ssde-md.md)]. It is not used to work with the data in databases. If you have navigated to a table or view, you cannot use the provider to select, insert, update, or delete data. Use the **Invoke-Sqlcmd** cmdlet to query or change data in tables and views from the Windows PowerShell environment. For more information, see [Invoke-Sqlcmd cmdlet](/powershell/module/sqlserver/invoke-sqlcmd).
3131

3232
## <a name="ListPropMeth"></a> Listing Methods and Properties
3333
**Listing Methods and Properties**
@@ -94,7 +94,6 @@ $MyDBVar.State
9494
## See Also
9595
[SQL Server PowerShell Provider](sql-server-powershell-provider.md)
9696
[Navigate SQL Server PowerShell Paths](navigate-sql-server-powershell-paths.md)
97-
[Convert URNs to SQL Server Provider Paths](https://docs.microsoft.com/powershell/module/sqlserver/Convert-UrnToPath)
97+
[Convert URNs to SQL Server Provider Paths](/powershell/module/sqlserver/Convert-UrnToPath)
9898
[SQL Server PowerShell](sql-server-powershell.md)
9999

100-

0 commit comments

Comments
 (0)