Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Executing sp_rename from an application
Message
De
16/10/2014 11:58:34
 
 
À
16/10/2014 11:52:36
John Baird
Coatesville, Pennsylvanie, États-Unis
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Versions des environnements
SQL Server:
SQL Server 2012
Application:
Web
Divers
Thread ID:
01609538
Message ID:
01609542
Vues:
37
>no, I misread what you typed... sorry...
>
>
>EXEC sys.sp_rename
> @objname = N'dbo.Company.CompanyName',
> @newname = 'Name',
> @objtype = 'COLUMN'
>
>From the documentation (sp_rename (Transact-SQL))
>
>If the object to be renamed is a column in a table, object_name must be in the form table.column or schema.table.column. If the object to be renamed is an index, object_name must be in the form table.index or schema.table

Yes, that syntax works. I was trying to see with ALTER COLUMN is not supported, or was now, assuming that support was added in recent versions.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform