开发者

Make DataBase portable

开发者 https://www.devze.com 2023-01-05 19:33 出处:网络
I\'m developing a local application with a DataBase in SQL Server 2008 and Visual Studio, C#, I created and connected to the Database in the application, but when I pass to work开发者_如何学JAVA to an

I'm developing a local application with a DataBase in SQL Server 2008 and Visual Studio, C#, I created and connected to the Database in the application, but when I pass to work开发者_如何学JAVA to another computer, copy the all solution files, the information that had been saved in it doesn't exist, actually the entire Database doesn't exist, so I ask: have a way to package the data and make it accessible in other computers (not at the same time)?


For a desktop application, you might want to try something like Sql Server Compact Edition or Sqlite. That should allow you to easily move the data file from computer to computer without needing to install a full database server.


What exactly do you wish to achieve?

  • If you want a common database location which should be accessed by all, then you'd need to make certain that other machines have access to your local machine's database server
  • If you want the entire code plus the database to be present separately on each machine, then you'd need to share a database backup along with the application code folder and each machine would require the database backup to be restored on their database server along with setting up the application.
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号