[英]application with setup file with out SQL Server database
I have a windows application which is uses SQL Server as its database. 我有一个Windows应用程序,它使用SQL Server作为其数据库。 For this application I want to create a setup file for other desktops, but I don't want to install SQL Server on each and every client. 对于这个应用程序,我想为其他桌面创建一个安装文件,但我不想在每个客户端上安装SQL Server。
Can you please suggest how to create Windows application with local storage setup file without installing any databases or framework libraries? 您能否建议如何使用本地存储设置文件创建Windows应用程序而无需安装任何数据库或框架库?
You don't need to install SQL Server on each client - you can simply install it on a central server then all the clients can connect to and use the same instance. 您不需要在每个客户端上安装SQL Server - 您只需将其安装在中央服务器上,然后所有客户端都可以连接并使用相同的实例。
If this is not a good option because each client must have its own storage locally then you can look to use something like SQL Server Compact , which is a very cut down version of SQL Server that doesn't require installation and runs inproc. 如果这不是一个好的选择,因为每个客户端必须在本地拥有自己的存储,那么你可以使用像SQL Server Compact这样的东西,这是一个非常简化的SQL Server版本,不需要安装并运行inproc。
You can use SQL Server Compact . 您可以使用SQL Server Compact 。 The database is stored in a file that you carry with the product rather than requiring a database server. 数据库存储在随产品提供的文件中,而不是需要数据库服务器。
If this is just for "settings" then consider storing it in the user's application data as a simple XML file. 如果这仅用于“设置”,则考虑将其作为简单的XML文件存储在用户的应用程序数据中。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.