Skip to content

Commit d55982d

Browse files
committed
tsql renaming set 7
1 parent b71e99d commit d55982d

24 files changed

Lines changed: 37 additions & 37 deletions

docs/t-sql/statements/drop-view-transact-sql.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ monikerRange: ">=aps-pdw-2016||=azuresqldb-current||=azure-sqldw-latest||>=sql-s
3535
## Syntax
3636

3737
```syntaxsql
38-
-- Syntax for SQL Server, Azure SQL Database, and Azure SQL Data Warehouse
38+
-- Syntax for SQL Server, Azure SQL Database, and Azure Synapse Analytics
3939
4040
DROP VIEW [ IF EXISTS ] [ schema_name . ] view_name [ ...,n ] [ ; ]
4141
```

docs/t-sql/statements/drop-workload-classifier-transact-sql.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,4 +58,4 @@ DROP WORKLOAD CLASSIFIER wgcELTRole;
5858
## See Also
5959

6060
[CREATE WORKLOAD CLASSIFIER &#40;Transact-SQL&#41;](../../t-sql/statements/create-workload-classifier-transact-sql.md)</br>
61-
[SQL Data Warehouse Workload Classification](/azure/sql-data-warehouse/sql-data-warehouse-workload-classification)
61+
[[!INCLUDE[ssSDW](../../includes/sssdwfull-md.md)] Workload Classification](/azure/sql-data-warehouse/sql-data-warehouse-workload-classification)

docs/t-sql/statements/execute-as-transact-sql.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ monikerRange: "= azuresqldb-current || >= sql-server-2016 || >= sql-server-linux
5757
Specifies the execution context to be impersonated is a login. The scope of impersonation is at the server level.
5858

5959
> [!NOTE]
60-
> This option is not available in a contained database or SQL Database or SQL Data Warehouse.
60+
> This option is not available in a contained database or SQL Database or [!INCLUDE[ssSDW](../../includes/sssdwfull-md.md)].
6161
6262
USER
6363
Specifies the context to be impersonated is a user in the current database. The scope of impersonation is restricted to the current database. A context switch to a database user does not inherit the server-level permissions of that user.
@@ -91,7 +91,7 @@ monikerRange: "= azuresqldb-current || >= sql-server-2016 || >= sql-server-linux
9191
When used inside a module, specifies the statements inside the module are executed in the context of the caller of the module.
9292
When used outside a module, the statement has no action.
9393
> [!NOTE]
94-
> This option is not available in SQL Data Warehouse.
94+
> This option is not available in [!INCLUDE[ssSDW](../../includes/sssdwfull-md.md)].
9595
9696
## Remarks
9797
The change in execution context remains in effect until one of the following occurs:

docs/t-sql/statements/grant-transact-sql.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ GRANT { ALL [ PRIVILEGES ] }
4949
```
5050

5151
```syntaxsql
52-
-- Syntax for Azure SQL Data Warehouse and Parallel Data Warehouse
52+
-- Syntax for Azure Synapse Analytics and Parallel Data Warehouse
5353
5454
GRANT
5555
<permission> [ ,...n ]

docs/t-sql/statements/insert-transact-sql.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ INSERT
115115
```
116116

117117
```syntaxsql
118-
-- Syntax for Azure SQL Data Warehouse and Parallel Data Warehouse
118+
-- Syntax for Azure Synapse Analytics and Parallel Data Warehouse
119119
120120
INSERT INTO { database_name.schema_name.table_name | schema_name.table_name | table_name }
121121
[ ( column_name [ ,...n ] ) ]

docs/t-sql/statements/permissions-grant-deny-revoke-azure-sql-data-warehouse-parallel-data-warehouse.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
2-
description: "Permissions: GRANT, DENY, REVOKE (Azure SQL Data Warehouse, Parallel Data Warehouse)"
2+
description: "Permissions: GRANT, DENY, REVOKE (Azure Synapse Analytics, Parallel Data Warehouse)"
33
title: "GRANT-DENY-REVOKE permissions"
4-
titleSuffix: "Azure SQL Data Warehouse"
4+
titleSuffix: "Azure Synapse Analytics"
55
ms.custom: "seo-lt-2019​"
66
ms.date: "08/10/2017"
77
ms.prod: sql
@@ -16,7 +16,7 @@ author: VanMSFT
1616
ms.author: vanto
1717
monikerRange: ">= aps-pdw-2016 || = azure-sqldw-latest || = sqlallproducts-allversions"
1818
---
19-
# Permissions: GRANT, DENY, REVOKE (Azure SQL Data Warehouse, Parallel Data Warehouse)
19+
# Permissions: GRANT, DENY, REVOKE (Azure Synapse Analytics, Parallel Data Warehouse)
2020
[!INCLUDE[applies-to-version/asa-pdw](../../includes/applies-to-version/asa-pdw.md)]
2121

2222
Use [!INCLUDE[ssSDW](../../includes/sssdw-md.md)] or [!INCLUDE[ssPDW](../../includes/sspdw-md.md)]**GRANT** and **DENY** statements to grant or deny a permission (such as **UPDATE**) on a securable (such as a database, table, view, etc.) to a security principal (a login, a database user, or a database role). Use **REVOKE** to remove the grant or deny of a permission.
@@ -36,7 +36,7 @@ monikerRange: ">= aps-pdw-2016 || = azure-sqldw-latest || = sqlallproducts-allve
3636
## Syntax
3737

3838
```syntaxsql
39-
-- Azure SQL Data Warehouse and Parallel Data Warehouse
39+
-- Azure Synapse Analytics and Parallel Data Warehouse
4040
GRANT
4141
<permission> [ ,...n ]
4242
[ ON [ <class_type> :: ] securable ]

docs/t-sql/statements/rename-transact-sql.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@ monikerRange: ">= aps-pdw-2016 || = azure-sqldw-latest || = sqlallproducts-allve
1717
Renames a user-created table in [!INCLUDE[ssSDW](../../includes/sssdw-md.md)]. Renames a user-created table, a column in a user-created table or database in [!INCLUDE[ssPDW](../../includes/sspdw-md.md)].
1818

1919
> [!NOTE]
20-
> To rename a database in [!INCLUDE[ssSDW](../../includes/sssdw-md.md)], use [ALTER DATABASE (Azure SQL Data Warehouse](alter-database-transact-sql.md?view=aps-pdw-2016-au7). To rename a database in Azure SQL Database, use the [ALTER DATABASE (Azure SQL Database)](alter-database-transact-sql.md?view=azuresqldb-mi-current) statement. To rename a database in [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)], use the stored procedure [sp_renamedb](../../relational-databases/system-stored-procedures/sp-renamedb-transact-sql.md).
20+
> To rename a database in [!INCLUDE[ssSDW](../../includes/sssdw-md.md)], use [ALTER DATABASE ([!INCLUDE[ssSDW](../../includes/sssdwfull-md.md)])](alter-database-transact-sql.md?view=aps-pdw-2016-au7). To rename a database in Azure SQL Database, use the [ALTER DATABASE (Azure SQL Database)](alter-database-transact-sql.md?view=azuresqldb-mi-current) statement. To rename a database in [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)], use the stored procedure [sp_renamedb](../../relational-databases/system-stored-procedures/sp-renamedb-transact-sql.md).
2121
2222
## Syntax
2323

2424
```syntaxsql
25-
-- Syntax for Azure SQL Data Warehouse
25+
-- Syntax for Azure Synapse Analytics
2626
2727
-- Rename a table.
2828
RENAME OBJECT [::] [ [ database_name . [schema_name ] ] . ] | [schema_name . ] ] table_name TO new_table_name
@@ -87,7 +87,7 @@ You can't rename an external table, indexes, or views. Instead of renaming, you
8787

8888
### Cannot rename a table in use
8989

90-
You can't rename a table or database while it is in use. Renaming a table requires an exclusive lock on the table. If the table is in use, you may need to terminate sessions that are using the table. To terminate a session, you can use the KILL command. Use KILL cautiously since when a session is terminated any uncommitted work will be rolled back. Sessions in SQL Data Warehouse are prefixed by 'SID'. Include 'SID' and the session number when invoking the KILL command. This example views a list of active or idle sessions and then terminates session 'SID1234'.
90+
You can't rename a table or database while it is in use. Renaming a table requires an exclusive lock on the table. If the table is in use, you may need to terminate sessions that are using the table. To terminate a session, you can use the KILL command. Use KILL cautiously since when a session is terminated any uncommitted work will be rolled back. Sessions in [!INCLUDE[ssSDW](../../includes/sssdwfull-md.md)] are prefixed by 'SID'. Include 'SID' and the session number when invoking the KILL command. This example views a list of active or idle sessions and then terminates session 'SID1234'.
9191

9292
### Rename column restrictions
9393

@@ -150,7 +150,7 @@ ALTER SCHEMA dbo TRANSFER OBJECT::product.item;
150150

151151
**APPLIES TO:** [!INCLUDE[ssSDW](../../includes/sssdw-md.md)], [!INCLUDE[ssPDW](../../includes/sspdw-md.md)]
152152

153-
It is important to remember that you can't rename a table while it is in use. A rename of a table requires an exclusive lock on the table. If the table is in use, you may need to terminate the session using the table. To terminate a session, you can use the KILL command. Use KILL cautiously since when a session is terminated any uncommitted work will be rolled back. Sessions in SQL Data Warehouse are prefixed by 'SID'. You will need to include 'SID' and the session number when invoking the KILL command. This example views a list of active or idle sessions and then terminates session 'SID1234'.
153+
It is important to remember that you can't rename a table while it is in use. A rename of a table requires an exclusive lock on the table. If the table is in use, you may need to terminate the session using the table. To terminate a session, you can use the KILL command. Use KILL cautiously since when a session is terminated any uncommitted work will be rolled back. Sessions in [!INCLUDE[ssSDW](../../includes/sssdwfull-md.md)] are prefixed by 'SID'. You will need to include 'SID' and the session number when invoking the KILL command. This example views a list of active or idle sessions and then terminates session 'SID1234'.
154154

155155
```sql
156156
-- View a list of the current sessions

docs/t-sql/statements/restore-statements-transact-sql.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -958,8 +958,8 @@ Requires the `CREATE ANY DATABASE` permission.
958958
Requires a Windows account that has permission to access and read from the backup directory. You must also store the Windows account name and password in [!INCLUDE[ssPDW](../../includes/sspdw-md.md)].
959959

960960
- To verify the credentials are already there, use [sys.dm_pdw_network_credentials](../../relational-databases/system-dynamic-management-views/sys-dm-pdw-network-credentials-transact-sql.md).
961-
- To add or update the credentials, use [sp_pdw_add_network_credentials - SQL Data Warehouse](../../relational-databases/system-stored-procedures/sp-pdw-add-network-credentials-sql-data-warehouse.md).
962-
- To remove credentials from [!INCLUDE[ssPDW](../../includes/sspdw-md.md)], use [sp_pdw_remove_network_credentials - SQL Data Warehouse](../../relational-databases/system-stored-procedures/sp-pdw-remove-network-credentials-sql-data-warehouse.md).
961+
- To add or update the credentials, use [sp_pdw_add_network_credentials - [!INCLUDE[ssSDW](../../includes/sssdwfull-md.md)]](../../relational-databases/system-stored-procedures/sp-pdw-add-network-credentials-sql-data-warehouse.md).
962+
- To remove credentials from [!INCLUDE[ssPDW](../../includes/sspdw-md.md)], use [sp_pdw_remove_network_credentials - [!INCLUDE[ssSDW](../../includes/sssdwfull-md.md)]](../../relational-databases/system-stored-procedures/sp-pdw-remove-network-credentials-sql-data-warehouse.md).
963963

964964
## Error Handling
965965

@@ -982,7 +982,7 @@ After a restore, the user database will have database compatibility level 120. T
982982

983983
## Restoring to an appliance with a larger number of compute nodes
984984

985-
Run [DBCC SHRINKLOG (Azure SQL Data Warehouse)](../../t-sql/database-console-commands/dbcc-shrinklog-azure-sql-data-warehouse.md) after restoring a database from a smaller to larger appliance since redistribution will increase transaction log.
985+
Run [DBCC SHRINKLOG ([!INCLUDE[ssSDW](../../includes/sssdwfull-md.md)])](../../t-sql/database-console-commands/dbcc-shrinklog-azure-sql-data-warehouse.md) after restoring a database from a smaller to larger appliance since redistribution will increase transaction log.
986986

987987
Restoring a backup to an appliance with a larger number of Compute nodes grows the allocated database size in proportion to the number of Compute nodes.
988988

docs/t-sql/statements/revoke-transact-sql.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ REVOKE [ GRANT OPTION FOR ]
5656
```
5757

5858
```syntaxsql
59-
-- Syntax for Azure SQL Data Warehouse and Parallel Data Warehouse
59+
-- Syntax for Azure Synapse Analytics and Parallel Data Warehouse
6060
6161
REVOKE
6262
<permission> [ ,...n ]

docs/t-sql/statements/set-ansi-null-dflt-off-transact-sql.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ SET ANSI_NULL_DFLT_OFF { ON | OFF }
4242
```
4343

4444
```syntaxsql
45-
-- Syntax for Azure SQL Data Warehouse and Parallel Data Warehouse
45+
-- Syntax for Azure Synapse Analytics and Parallel Data Warehouse
4646
4747
SET ANSI_NULL_DFLT_OFF OFF
4848
```

0 commit comments

Comments
 (0)