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

Commit 3cbba2d

Browse files
20231023 update sp_rename
1 parent 9dc93ee commit 3cbba2d

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: "Changes the name of a user-created object in the current database.
44
author: markingmyname
55
ms.author: maghan
66
ms.reviewer: randolphwest, maghan
7-
ms.date: 09/22/2023
7+
ms.date: 11/01/2023
88
ms.service: sql
99
ms.subservice: system-objects
1010
ms.topic: "reference"
@@ -18,7 +18,7 @@ helpviewer_keywords:
1818
- "renaming tables"
1919
dev_langs:
2020
- "TSQL"
21-
monikerRange: "=azuresqldb-current || >=sql-server-2016 || >=sql-server-linux-2017 || =azuresqldb-mi-current || =azure-sqldw-latest || = fabric"
21+
monikerRange: "=azuresqldb-current||>=sql-server-2016||>=sql-server-linux-2017||=azuresqldb-mi-current||=azure-sqldw-latest||=fabric"
2222
---
2323
# sp_rename (Transact-SQL)
2424

@@ -122,7 +122,7 @@ In `sp_rename` for the SQL Endpoint in [!INCLUDE [fabric](../../includes/fabric.
122122

123123
**Applies to** Azure Synapse Analytics:
124124

125-
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.
125+
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.
126126

127127
## Permissions
128128

@@ -237,7 +237,7 @@ CK_Employee_SickLeaveHours HumanResources CHECK_CONSTRAINT
237237

238238
### F. Rename statistics
239239

240-
The following example creates a statistics object named contactMail1 and then renames the statistic to NewContact by using `sp_rename`. When you rename statistics, the object must be specified in the format schema.table.statistics_name.
240+
The following example creates a statistics object named `contactMail1` and then renames the statistic to `NewContact` by using `sp_rename`. When you rename statistics, the object must be specified in the format `schema.table.statistics_name``.
241241

242242
```sql
243243
CREATE STATISTICS ContactMail1
@@ -254,7 +254,7 @@ EXEC sp_rename 'Person.Person.ContactMail1', 'NewContact','Statistics';
254254
The following example renames the `c1` column in the `table1` table to `col1`.
255255

256256
> [!NOTE]
257-
> 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.
257+
> 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.
258258
259259
```sql
260260
CREATE TABLE table1 (c1 INT, c2 INT);
@@ -270,7 +270,7 @@ The following example renames the table `dbo.table1` to `dbo.table2`, using the
270270
exec sp_rename @objname = 'dbo.table1', @newname = 'table2', @objtype = 'OBJECT';
271271
```
272272

273-
## Next steps
273+
## Related content
274274

275275
- [sys.sql_expression_dependencies (Transact-SQL)](../system-catalog-views/sys-sql-expression-dependencies-transact-sql.md)
276276
- [sys.sql_modules (Transact-SQL)](../system-catalog-views/sys-sql-modules-transact-sql.md)

0 commit comments

Comments
 (0)