c# - How to edit column name in Visual Studio's SQL Compact? -
i use wpf c# visual studio , sql compact 3.5. on server explorer, right click , select "edit table schema", can change data type, length,..etc cannot click column name change column name. how change column name in server explorer?
sadly, not possible in sql server ce. have create new column , remove old one. if have data in column need migrate new column first. if want sql statement, try this:
alter table mytable add newcolumn newtype update mytable set newcolumn = oldcolumn alter table mytable drop column oldcolumn
Comments
Post a Comment