How to "Change column name" in Sql server 2008


Ans :

1. sp_rename 'Tbl_Enquiry.[old_column_name]','New_column_name' (select this line and run (f5))

2. sp_RENAME 'Table_First.Name', 'NameChange' , 'COLUMN'.

Comments

Popular posts from this blog

Tree view in winforms using c#

how to Replace null value with 0 Using C#

how to fetch all HTML Table Records and modify all records accordingly using jquery and Javascript