开发者

rename columnName and change column's data type in a table by using ADO.NET

开发者 https://www.devze.com 2022-12-23 04:31 出处:网络
how can I by using Ado.net rename existing column in a ta开发者_Python百科ble and changing a column\'s data type?You can call stored procedure for that, as follows

how can I by using Ado.net rename existing column in a ta开发者_Python百科ble and changing a column's data type?


You can call stored procedure for that, as follows

EXEC sp_rename 'MyTable.OldColumnName', 'NewColumnName'

see section: Renaming a Column in this Article

0

精彩评论

暂无评论...
验证码 换一张
取 消