loviji
loviji

Reputation: 13080

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

how can I by using Ado.net rename existing column in a table and changing a column's data type?

Upvotes: 2

Views: 2202

Answers (1)

Asad
Asad

Reputation: 21928

You can call stored procedure for that, as follows

EXEC sp_rename 'MyTable.OldColumnName', 'NewColumnName'

see section: Renaming a Column in this Article

Upvotes: 2

Related Questions