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?

enter image description here

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

Popular posts from this blog

c# - Is it possible to remove an existing registration from Autofac container builder? -

php - Mysql PK and FK char(36) vs int(10) -