Skip to content

Commit 94e5583

Browse files
committed
Merge branch 'master' of https://github.com/MicrosoftDocs/sql-docs-pr into release-2019-cu
2 parents 3f40f7f + 720b6df commit 94e5583

68 files changed

Lines changed: 253 additions & 52 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

docs/connect/driver-feature-matrix.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: "Driver feature support matrix"
33
description: "Learn which popular features are supported in drivers for SQL Server and where to find information about them."
44
ms.custom: ""
5-
ms.date: 04/21/2020
5+
ms.date: 06/12/2020
66
ms.prod: sql
77
ms.technology: connectivity
88
ms.topic: conceptual
@@ -64,7 +64,7 @@ We wish all drivers supported every feature and spend effort to ensure feature p
6464
| [Spatial Data Types](../relational-databases/spatial/spatial-data-sql-server.md) | | | [Yes](jdbc/use-spatial-datatypes.md) | |
6565
| [Table-Valued Parameters (TVP)](../relational-databases/tables/use-table-valued-parameters-database-engine.md) | [Yes](../relational-databases/native-client-odbc-table-valued-parameters/table-valued-parameters-odbc.md) | [Yes](../relational-databases/native-client-odbc-table-valued-parameters/table-valued-parameters-odbc.md) | [Yes](jdbc/using-table-valued-parameters.md) | [Yes](oledb/ole-db-table-valued-parameters/table-valued-parameters-ole-db.md) |
6666
| [MultiSubnetFailover](../relational-databases/native-client/features/sql-server-native-client-support-for-high-availability-disaster-recovery.md#connecting-with-multisubnetfailover) | [Yes](../relational-databases/native-client/features/sql-server-native-client-support-for-high-availability-disaster-recovery.md#connecting-with-multisubnetfailover) | [Yes](../relational-databases/native-client/features/sql-server-native-client-support-for-high-availability-disaster-recovery.md#connecting-with-multisubnetfailover) | [Yes](jdbc/jdbc-driver-support-for-high-availability-disaster-recovery.md) | [Yes](oledb/features/oledb-driver-for-sql-server-support-for-high-availability-disaster-recovery.md#connecting-with-multisubnetfailover) |
67-
| [Transparent Network IP Resolution](odbc/using-transparent-network-ip-resolution.md) | [Yes](odbc/using-transparent-network-ip-resolution.md) | [Yes](odbc/using-transparent-network-ip-resolution.md) | [Yes](jdbc/setting-the-connection-properties.md) | |
67+
| [Transparent Network IP Resolution](odbc/using-transparent-network-ip-resolution.md) | [Yes](odbc/using-transparent-network-ip-resolution.md) | [Yes](odbc/using-transparent-network-ip-resolution.md) | [Yes](jdbc/setting-the-connection-properties.md) | [Yes](oledb/features/using-transparent-network-ip-resolution.md) |
6868
|   |   |   |   |   |
6969

7070
| <a id="table3"></a>Feature | [Drivers for PHP for SQL Server on Windows](php/microsoft-php-driver-for-sql-server.md)<sup>[2](#note2)</sup> | [Drivers for PHP for SQL Server on Linux and macOS](php/microsoft-php-driver-for-sql-server.md)<sup>[2](#note2)</sup> | [Tedious (Node.js)](node-js/node-js-driver-for-sql-server.md) | [pyODBC (Python)](python/pyodbc/python-sql-driver-pyodbc.md)<sup>[2](#note2)</sup> |
Lines changed: 24 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,49 @@
11
---
2-
title: "xp_cmdshell Server Configuration Option | Microsoft Docs"
3-
ms.custom: ""
4-
ms.date: "03/02/2017"
2+
title: xp_cmdshell Server configuration option
53
ms.prod: sql
64
ms.prod_service: high-availability
75
ms.reviewer: ""
86
ms.technology: configuration
97
ms.topic: conceptual
10-
dev_langs:
11-
- "TSQL"
12-
helpviewer_keywords:
13-
- "xp_cmdshell"
8+
dev_langs: "TSQL"
9+
helpviewer_keywords: "xp_cmdshell"
1410
ms.assetid: c147c9e1-b81d-49c8-b800-3019f4d86a13
1511
author: markingmyname
1612
ms.author: maghan
13+
ms.custom: contperfq4
14+
ms.date: 06/12/2020
1715
---
18-
# xp_cmdshell Server Configuration Option
16+
17+
# xp_cmdshell Server configuration option
18+
1919
[!INCLUDE[appliesto-ss-xxxx-xxxx-xxx-md](../../includes/appliesto-ss-xxxx-xxxx-xxx-md.md)]
2020

21-
The **xp_cmdshell** option is a [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] server configuration option that enables system administrators to control whether the **xp_cmdshell** extended stored procedure can be executed on a system. By default, the **xp_cmdshell** option is disabled on new installations. Before enabling this option, it is important to consider the potential security implications associated with the use of this option. Newly-developed code should not use this option as it should generally be left disabled. Some legacy applications require it to be enabled, and if they cannot be modified to avoid the use of this option, it can be enabled by using the Policy-Based Management or by running the **sp_configure** system stored procedure as shown in the following code example:
21+
This article describes how to enable the **xp_cmdshell** SQL Server configuration option. This option allows system administrators to control whether the [xp_cmdshell extended stored procedure](../../relational-databases/system-stored-procedures/xp-cmdshell-transact-sql.md) can be executed on a system. By default, the **xp_cmdshell** option is disabled on new installations.
22+
23+
Before enabling this option, it's important to consider the potential security implications.
24+
25+
- Newly developed code shouldn't use the **xp_cmdshell** stored procedure and generally it should be left disabled.
26+
- Some legacy applications require **xp_cmdshell** to be enabled. If they can't be modified to avoid the use of this stored procedure, you can enable it as described below.
27+
28+
If you need to enable **xp_cmdshell**, you can use [Policy-Based Management](../../relational-databases/policy-based-management/administer-servers-by-using-policy-based-management.md) or run the **sp_configure** system stored procedure as shown in the following code example:
2229

23-
```
30+
``` sql
2431
-- To allow advanced options to be changed.
25-
EXEC sp_configure 'show advanced options', 1;
32+
EXECUTE sp_configure 'show advanced options', 1;
2633
GO
2734
-- To update the currently configured value for advanced options.
2835
RECONFIGURE;
2936
GO
3037
-- To enable the feature.
31-
EXEC sp_configure 'xp_cmdshell', 1;
38+
EXECUTE sp_configure 'xp_cmdshell', 1;
3239
GO
3340
-- To update the currently configured value for this feature.
3441
RECONFIGURE;
3542
GO
3643
```
3744

38-
## See Also
39-
[Server Configuration Options &#40;SQL Server&#41;](../../database-engine/configure-windows/server-configuration-options-sql-server.md)
40-
[Administer Servers by Using Policy-Based Management](../../relational-databases/policy-based-management/administer-servers-by-using-policy-based-management.md)
41-
42-
45+
## Next steps
46+
47+
- [xp_cmdshell extended stored procedure](../../relational-databases/system-stored-procedures/xp-cmdshell-transact-sql.md)
48+
- [Server Configuration Options (SQL Server)](server-configuration-options-sql-server.md)
49+
- [Administer Servers by Using Policy-Based Management](../../relational-databases/policy-based-management/administer-servers-by-using-policy-based-management.md)

docs/odbc/reference/syntax/sqlgetcursorname-function.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: "SQLGetCursorName Function | Microsoft Docs"
33
ms.custom: ""
4-
ms.date: "01/19/2017"
4+
ms.date: "06/12/2020"
55
ms.prod: sql
66
ms.prod_service: connectivity
77
ms.reviewer: ""
@@ -48,7 +48,7 @@ SQLRETURN SQLGetCursorName(
4848
If *CursorName* is NULL, *NameLengthPtr* will still return the total number of characters (excluding the null-termination character for character data) available to return in the buffer pointed to by *CursorName*.
4949
5050
*BufferLength*
51-
[Input] Length of \**CursorName*, in characters. If the value in *\*CursorName* is a Unicode string (when calling **SQLGetCursorNameW**), the *BufferLength* argument must be an even number.
51+
[Input] Length of \**CursorName*, in characters.
5252
5353
*NameLengthPtr*
5454
[Output] Pointer to memory in which to return the total number of characters (excluding the null-termination character) available to return in \**CursorName*. If the number of characters available to return is greater than or equal to *BufferLength*, the cursor name in \**CursorName* is truncated to *BufferLength* minus the length of a null-termination character.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ There are two SQL Server PowerShell modules:
2222

2323
- **SqlServer**: The SqlServer module includes new cmdlets to support the latest SQL features. The module also contains updated versions of the cmdlets in **SQLPS**. To download the SqlServer module, go to [SqlServer module in the PowerShell Gallery](https://www.powershellgallery.com/packages/Sqlserver).
2424

25-
- **SQLPS**: The SQLPS is the module used by SQL Agent to run agent jobs in agent job steps using the PowerShell subsystem.
25+
- **SQLPS**: The SQLPS is the module used by [SQL Agent](sql-server-powershell.md#sql-server-agent) to run agent jobs in agent job steps using the PowerShell subsystem.
2626

2727
> [!NOTE]
2828
> The versions of the **SqlServer** module in the PowerShell Gallery support versioning and require PowerShell version 5.0 or greater.

0 commit comments

Comments
 (0)