Skip to content

Commit 0cae63a

Browse files
Merge pull request #34520 from MicrosoftDocs/main
Merged by Learn.Build PR Management system
2 parents 22edf5d + c2404ea commit 0cae63a

File tree

126 files changed

+873
-809
lines changed

Some content is hidden

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

126 files changed

+873
-809
lines changed

azure-sql/managed-instance/instance-pools-configure.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -562,7 +562,6 @@ Instances in a pool have the following limitations:
562562
- The maximum possible number of instances in the pool is 40.
563563
- An instance pool can only be deleted after all instances in the pool are either deleted or moved out of the pool.
564564
- You can't use the Azure portal to move instances in and out of the pool. Use PowerShell or the Azure CLI instead.
565-
- Instance pools are not available in the [Azure Government](/azure/azure-government/documentation-government-welcome) cloud.
566565
- The following SQL Managed Instance features aren't supported on instances in a pool:
567566
- [Failover groups](failover-group-sql-mi.md). [Failover rights](failover-group-standby-replica-how-to-configure.md) aren't available to instances in a pool.
568567
- [Start/Stop](instance-stop-start-how-to.md).

docs/relational-databases/system-stored-procedures/sp-dropsrvrolemember-transact-sql.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: sp_dropsrvrolemember removes a SQL Server login, Windows user, or W
44
author: VanMSFT
55
ms.author: vanto
66
ms.reviewer: randolphwest
7-
ms.date: 11/28/2023
7+
ms.date: 06/23/2025
88
ms.service: sql
99
ms.subservice: system-objects
1010
ms.topic: "reference"
@@ -76,7 +76,7 @@ Requires membership in the **sysadmin** fixed server role, or both `ALTER ANY LO
7676
The following example removes the login `JackO` from the **sysadmin** fixed server role.
7777

7878
```sql
79-
EXEC sp_dropsrvrolemember 'JackO', 'sysadmin';
79+
EXECUTE sp_dropsrvrolemember 'JackO', 'sysadmin';
8080
```
8181

8282
## Related content

docs/relational-databases/system-stored-procedures/sp-droptype-transact-sql.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: sp_droptype deletes an alias data type from systypes.
44
author: markingmyname
55
ms.author: maghan
66
ms.reviewer: randolphwest
7-
ms.date: 11/28/2023
7+
ms.date: 06/23/2025
88
ms.service: sql
99
ms.subservice: system-objects
1010
ms.topic: "reference"
@@ -63,7 +63,8 @@ The following example drops the alias data type `birthday`. This alias data type
6363
```sql
6464
USE master;
6565
GO
66-
EXEC sp_droptype 'birthday';
66+
67+
EXECUTE sp_droptype 'birthday';
6768
GO
6869
```
6970

docs/relational-databases/system-stored-procedures/sp-dropuser-transact-sql.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: sp_dropuser removes a database user from the current database.
44
author: markingmyname
55
ms.author: maghan
66
ms.reviewer: randolphwest
7-
ms.date: 08/22/2024
7+
ms.date: 06/23/2025
88
ms.service: sql
99
ms.subservice: system-objects
1010
ms.topic: "reference"
@@ -52,7 +52,7 @@ Use `sp_helpuser` to display a list of the user names that can be removed from t
5252

5353
When a database user is removed, any aliases to that user are also removed. If the user owns an empty schema with the same name as the user, the schema is dropped. If the user owns any other securables in the database, the user isn't dropped. Ownership of the objects must first be transferred to another principal. For more information, see [ALTER AUTHORIZATION](../../t-sql/statements/alter-authorization-transact-sql.md). Removing a database user automatically removes the permissions associated with that user and removes the user from any database roles of which it's a member.
5454

55-
`sp_dropuser` can't be used to remove the database owner (**dbo**) `INFORMATION_SCHEMA` users, or the **guest** user from the `master` or `tempdb` databases. In nonsystem databases, `EXEC sp_dropuser 'guest'` revokes `CONNECT` permission from user **guest**, but the user itself isn't dropped.
55+
`sp_dropuser` can't be used to remove the database owner (**dbo**) `INFORMATION_SCHEMA` users, or the **guest** user from the `master` or `tempdb` databases. In nonsystem databases, `EXECUTE sp_dropuser 'guest'` revokes `CONNECT` permission from user **guest**, but the user itself isn't dropped.
5656

5757
`sp_dropuser` can't be executed within a user-defined transaction.
5858

@@ -65,7 +65,7 @@ Requires `ALTER ANY USER` permission on the database.
6565
The following example removes the user `Albert` from the current database.
6666

6767
```sql
68-
EXEC sp_dropuser 'Albert';
68+
EXECUTE sp_dropuser 'Albert';
6969
GO
7070
```
7171

docs/relational-databases/system-stored-procedures/sp-enclave-send-keys-sql.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: "sp_enclave_send_keys (Transact-SQL)"
44
author: jaszymas
55
ms.author: jaszymas
66
ms.reviewer: vanto, randolphwest
7-
ms.date: 03/07/2025
7+
ms.date: 06/23/2025
88
ms.service: sql
99
ms.subservice: system-objects
1010
ms.topic: "reference"
@@ -63,7 +63,7 @@ Require the `VIEW ANY COLUMN ENCRYPTION KEY DEFINITION` and `VIEW ANY COLUMN MAS
6363
## Examples
6464

6565
```sql
66-
EXEC sp_enclave_send_keys;
66+
EXECUTE sp_enclave_send_keys;
6767
```
6868

6969
## Related content

docs/relational-databases/system-stored-procedures/sp-enum-login-for-proxy-transact-sql.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: sp_enum_login_for_proxy lists associations between security princip
44
author: VanMSFT
55
ms.author: vanto
66
ms.reviewer: randolphwest
7-
ms.date: 07/16/2024
7+
ms.date: 06/23/2025
88
ms.service: sql
99
ms.subservice: system-objects
1010
ms.topic: "reference"
@@ -91,7 +91,7 @@ The following example lists all permissions established between logins and proxi
9191
USE msdb;
9292
GO
9393

94-
EXEC dbo.sp_enum_login_for_proxy;
94+
EXECUTE dbo.sp_enum_login_for_proxy;
9595
GO
9696
```
9797

@@ -103,7 +103,7 @@ The following example lists the proxies that the login `terrid` has access to.
103103
USE msdb;
104104
GO
105105

106-
EXEC dbo.sp_enum_login_for_proxy @name = 'terrid';
106+
EXECUTE dbo.sp_enum_login_for_proxy @name = 'terrid';
107107
GO
108108
```
109109

docs/relational-databases/system-stored-procedures/sp-enum-proxy-for-subsystem-transact-sql.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: sp_enum_proxy_for_subsystem lists permissions for SQL Server Agent
44
author: VanMSFT
55
ms.author: vanto
66
ms.reviewer: randolphwest
7-
ms.date: 07/16/2024
7+
ms.date: 06/23/2025
88
ms.service: sql
99
ms.subservice: system-objects
1010
ms.topic: "reference"
@@ -98,7 +98,7 @@ The following example lists all permissions established between proxies and subs
9898
USE msdb;
9999
GO
100100

101-
EXEC dbo.sp_enum_proxy_for_subsystem;
101+
EXECUTE dbo.sp_enum_proxy_for_subsystem;
102102
GO
103103
```
104104

@@ -110,7 +110,7 @@ The following example returns a row if the proxy `Catalog application proxy` has
110110
USE msdb;
111111
GO
112112

113-
EXEC dbo.sp_enum_proxy_for_subsystem
113+
EXECUTE dbo.sp_enum_proxy_for_subsystem
114114
@subsystem_name = 'ActiveScripting',
115115
@proxy_name = 'Catalog application proxy';
116116
GO

docs/relational-databases/system-stored-procedures/sp-estimate-data-compression-savings-transact-sql.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: The sp_estimate_data_compression_savings system stored procedure re
44
author: markingmyname
55
ms.author: maghan
66
ms.reviewer: dimitri-furman, wiassaf, randolphwest
7-
ms.date: 08/22/2024
7+
ms.date: 06/23/2025
88
ms.service: sql
99
ms.subservice: system-objects
1010
ms.topic: "reference"
@@ -183,8 +183,7 @@ Similarly, when the *@data_compression* parameter is set to `NONE`, `ROW`, or `P
183183
The following example estimates the size of the `Production.WorkOrderRouting` table if it's compressed by using `ROW` compression.
184184

185185
```sql
186-
EXEC sys.sp_estimate_data_compression_savings
187-
'Production', 'WorkOrderRouting', NULL, NULL, 'ROW';
186+
EXECUTE sys.sp_estimate_data_compression_savings 'Production', 'WorkOrderRouting', NULL, NULL, 'ROW';
188187
GO
189188
```
190189

@@ -195,8 +194,7 @@ GO
195194
The following example estimates the size of the `Production.ProductModel` table if it's compressed by using `PAGE` compression, and the *@xml_compression* value is enabled.
196195

197196
```sql
198-
EXEC sys.sp_estimate_data_compression_savings
199-
'Production', 'ProductModel', NULL, NULL, 'PAGE', 1;
197+
EXECUTE sys.sp_estimate_data_compression_savings 'Production', 'ProductModel', NULL, NULL, 'PAGE', 1;
200198
GO
201199
```
202200

docs/relational-databases/system-stored-procedures/sp-estimated-rowsize-reduction-for-vardecimal-transact-sql.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: sp_estimated_rowsize_reduction_for_vardecimal estimates the reducti
44
author: markingmyname
55
ms.author: maghan
66
ms.reviewer: randolphwest
7-
ms.date: 07/16/2024
7+
ms.date: 06/23/2025
88
ms.service: sql
99
ms.subservice: system-objects
1010
ms.topic: "reference"
@@ -77,7 +77,8 @@ The following example estimates the rowsize reduction if the `Production.WorkOrd
7777
```sql
7878
USE AdventureWorks2022;
7979
GO
80-
EXEC sp_estimated_rowsize_reduction_for_vardecimal 'Production.WorkOrderRouting' ;
80+
81+
EXECUTE sp_estimated_rowsize_reduction_for_vardecimal 'Production.WorkOrderRouting';
8182
GO
8283
```
8384

docs/relational-databases/system-stored-procedures/sp-execute-external-script-transact-sql.md

Lines changed: 21 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: "sp_execute_external_script (Transact-SQL)"
33
description: Executes a script provided as an input argument to the procedure, and is used with Machine Learning Services and Language Extensions.
44
author: rwestMSFT
55
ms.author: randolphwest
6-
ms.date: 03/07/2025
6+
ms.date: 06/23/2025
77
ms.service: sql
88
ms.subservice: machine-learning-services
99
ms.topic: "reference"
@@ -82,7 +82,7 @@ sp_execute_external_script
8282
## Syntax for SQL Server 2017 and previous versions
8383

8484
```syntaxsql
85-
EXEC sp_execute_external_script
85+
EXECUTE sp_execute_external_script
8686
@language = N'language'
8787
, @script = N'script'
8888
[ , [ @input_data_1 = ] N'input_data_1' ]
@@ -181,7 +181,7 @@ By default, result sets returned by this stored procedure are output with unname
181181
In addition to returning a result set, you can return scalar values to using OUTPUT parameters.
182182

183183
::: moniker range=">=sql-server-2016||>=sql-server-linux-ver15"
184-
You can control the resources used by external scripts by configuring an external resource pool. For more information, see [CREATE EXTERNAL RESOURCE POOL](../../t-sql/statements/create-external-resource-pool-transact-sql.md). Information about the workload can be obtained from the resource governor catalog views, DMVs, and counters. For more information, see [Resource Governor Catalog Views](../system-catalog-views/resource-governor-catalog-views-transact-sql.md), [Resource Governor Related Dynamic Management Views](../system-dynamic-management-views/resource-governor-related-dynamic-management-views-transact-sql.md), and [SQL Server, External Scripts object](../performance-monitor/sql-server-external-scripts-object.md).
184+
You can control the resources used by external scripts by configuring an external resource pool. For more information, see [CREATE EXTERNAL RESOURCE POOL](../../t-sql/statements/create-external-resource-pool-transact-sql.md). Information about the workload can be obtained from the resource governor catalog views, DMVs, and counters. For more information, see [Resource governor catalog views](../system-catalog-views/resource-governor-catalog-views-transact-sql.md), [Resource governor related dynamic management views](../system-dynamic-management-views/resource-governor-related-dynamic-management-views-transact-sql.md), and [SQL Server, External Scripts object](../performance-monitor/sql-server-external-scripts-object.md).
185185
::: moniker-end
186186

187187
### Monitor script execution
@@ -251,21 +251,24 @@ The following example creates a stored procedure that uses `sp_execute_external_
251251
```sql
252252
DROP PROCEDURE IF EXISTS get_iris_dataset;
253253
GO
254+
254255
CREATE PROCEDURE get_iris_dataset
255256
AS
256257
BEGIN
257-
EXEC sp_execute_external_script @language = N'R',
258+
EXECUTE sp_execute_external_script
259+
@language = N'R',
258260
@script = N'iris_data <- iris;',
259261
@input_data_1 = N'',
260262
@output_data_1_name = N'iris_data'
261-
WITH RESULT SETS((
263+
WITH RESULT SETS
264+
((
262265
"Sepal.Length" FLOAT NOT NULL,
263266
"Sepal.Width" FLOAT NOT NULL,
264267
"Petal.Length" FLOAT NOT NULL,
265268
"Petal.Width" FLOAT NOT NULL,
266-
"Species" VARCHAR(100)
269+
"Species" VARCHAR (100)
267270
));
268-
END;
271+
END
269272
GO
270273
```
271274

@@ -278,9 +281,9 @@ CREATE PROCEDURE [dbo].[py_generate_customer_scores]
278281
AS
279282
BEGIN
280283
-- Input query to generate the customer data
281-
DECLARE @input_query NVARCHAR(MAX) = N'SELECT customer, orders, items, cost FROM dbo.Sales.Orders'
282-
283-
EXEC sp_execute_external_script @language = N'Python',
284+
DECLARE @input_query AS NVARCHAR (MAX) = N'SELECT customer, orders, items, cost FROM dbo.Sales.Orders';
285+
EXECUTE sp_execute_external_script
286+
@language = N'Python',
284287
@script = N'
285288
import pandas as pd
286289
from sklearn.cluster import KMeans
@@ -298,14 +301,15 @@ OutputDataSet = customer_data
298301
',
299302
@input_data_1 = @input_query,
300303
@input_data_1_name = N'my_input_data'
301-
WITH RESULT SETS((
304+
WITH RESULT SETS
305+
((
302306
"CustomerID" INT,
303307
"Orders" FLOAT,
304308
"Items" FLOAT,
305309
"Cost" FLOAT,
306310
"ClusterResult" FLOAT
307311
));
308-
END;
312+
END
309313
GO
310314
```
311315

@@ -323,10 +327,12 @@ The following example creates a stored procedure that uses `sp_execute_external_
323327
```sql
324328
DROP PROCEDURE IF EXISTS generate_iris_model;
325329
GO
330+
326331
CREATE PROCEDURE generate_iris_model
327332
AS
328333
BEGIN
329-
EXEC sp_execute_external_script @language = N'R',
334+
EXECUTE sp_execute_external_script
335+
@language = N'R',
330336
@script = N'
331337
library(e1071);
332338
irismodel <-naiveBayes(iris_data[,1:4], iris_data[,5]);
@@ -335,8 +341,8 @@ BEGIN
335341
@input_data_1 = N'select "Sepal.Length", "Sepal.Width", "Petal.Length", "Petal.Width", "Species" from iris_data',
336342
@input_data_1_name = N'iris_data',
337343
@output_data_1_name = N'trained_model'
338-
WITH RESULT SETS((model VARBINARY(MAX)));
339-
END;
344+
WITH RESULT SETS ((model VARBINARY (MAX)));
345+
END
340346
GO
341347
```
342348

0 commit comments

Comments
 (0)