Skip to content

Commit 6cb495b

Browse files
authored
Merge pull request #6793 from swanderz/patch-2
qualify sp_renames support in Azure Synapse
2 parents 5cd6347 + e035d71 commit 6cb495b

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ monikerRange: "=azuresqldb-current||>=sql-server-2016||>=sql-server-linux-2017||
2929
Changes the name of a user-created object in the current database. This object can be a table, index, column, alias data type, or [!INCLUDE[msCoName](../../includes/msconame-md.md)] [!INCLUDE[dnprdnshort](../../includes/dnprdnshort-md.md)] common language runtime (CLR) user-defined type.
3030

3131
> [!NOTE]
32-
> In [!INCLUDE[ssazuresynapse](../../includes/ssazuresynapse_md.md)], sp_rename is in **Preview** and can only be used to rename a COLUMN in a user object in the **dbo** schema.
32+
> In [!INCLUDE[ssazuresynapse](../../includes/ssazuresynapse_md.md)], sp_rename is in **Preview** for dedicated SQL pools and can only be used to rename a COLUMN in a user object in the **dbo** schema.
33+
3334

3435
> [!CAUTION]
3536
> Changing any part of an object name can break scripts and stored procedures. We recommend you do not use this statement to rename stored procedures, triggers, user-defined functions, or views; instead, drop the object and re-create it with the new name.
@@ -220,7 +221,8 @@ sp_rename 'Person.Person.ContactMail1', 'NewContact','Statistics';
220221
The following example renames the `c1` column in the `table1` table to `col1`.
221222

222223
> [!NOTE]
223-
> This [!INCLUDE[ssazuresynapse](../../includes/ssazuresynapse_md.md)] feature is still in preview and is currently available only for objects in the **dbo** schema.
224+
> This [!INCLUDE[ssazuresynapse](../../includes/ssazuresynapse_md.md)] feature is still in preview for dedicated SQL pools and is currently available only for objects in the **dbo** schema.
225+
224226

225227
```sql
226228
CREATE TABLE table1 (c1 INT, c2 INT);

0 commit comments

Comments
 (0)