简体   繁体   English

保留数据时更新实时数据库的最佳方法?

[英]Best way to update a live database while persisting data?

In short; 简而言之; I have created a small WinForms application for a friend. 我为朋友创建了一个小型WinForms应用程序。

Whilst my friend was using the application I decided to make changes to the application. 当我的朋友正在使用应用程序时,我决定对应用程序进行更改。 In doing so I added a few columns to tables within the database. 为此,我向数据库中的表添加了几列。

I now want to implement that changes, what is the best way to get his database up to date with all the new columns whilst keeping his data intact? 我现在要实现这些更改,什么是使他的数据库与所有新列保持同步的最佳方法?

Thanks in advance! 提前致谢!

Use: 采用:

ALTER TABLE ADD NewColumn nvarchar(50) NULL

and run the required statements using SqlCeCmd.ExecuteNonQuery 并使用SqlCeCmd.ExecuteNonQuery运行所需的语句

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在现场计算机上更新(或替换)整个数据库表的最佳方法是什么? - What is the best way to update (or replace) an entire database table on a live machine? 什么是插入/更新数据到数据库的最佳方法 - What is the best way insert/update data to the database 归档实时 MySQL 数据库的最佳方式 - Best way to archive live MySQL database 在实时 mongodb 机器上更新(或替换)整个数据库集合的最佳方法是什么? - What is the best way to update (or replace) an entire database collection on a live mongodb machine? 更新数据库中过期用户状态的最佳方法? - Best way to update expired users' statuses in a database? 从 Web 服务中查找实时数据的最佳方式 - Best Way To Find Live Data From A Web Service 这将是使用Core Data(iOS)更新用户ReadOnly数据库的最佳方式 - Which will be the best way to update users ReadOnly database using Core Data (iOS) 如何在不覆盖实时数据的情况下更新来自测试数据库的实时数据库中列内的表 - How to update tables inside a column in a live database coming from test database without overriding live data 如何将实时数据从数据库更新到 Flutter 应用程序 - how to update live data from database to flutter app 在数据库上使用多语言数据的最佳方法 - Best way for having multilanguage data on Database
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM