简体   繁体   English

如何管理不在服务器上的 C# 中的离线数据库? [等候接听]

[英]How can I manage an offline database in C# that is NOT on a server? [on hold]

So I'm working on a school project.所以我正在做一个学校项目。 What I want is to manage an offline database (it must be an offline desktop application), I don't want this database to be on a server or something.我想要的是管理一个离线数据库(它必须是一个离线桌面应用程序),我不希望这个数据库在服务器或其他东西上。 How can I achieve this?我怎样才能做到这一点? (Every tutorial I watched only explained how to connect to the server that has the database) (我看的每个教程都只解释了如何连接到有数据库的服务器)

You need to modify the credentials to your local client server credentials ie reconfiguring default server details to local server details您需要将凭据修改为本地客户端服务器凭据,即将默认服务器详细信息重新配置为本地服务器详细信息

 Host: localhost
 username:yourlocaldatabasename
 password:localpassword
 driver: localdriver... etc

For managing your application data you can choose various SQL, No-SQL database.为了管理您的应用程序数据,您可以选择各种 SQL、No-SQL 数据库。 For example you want to save the application data in SQL Server 2016 .例如,您要将应用程序数据保存在SQL Server 2016中。 You need to install it on your local or any web server.您需要将其安装在本地或任何 web 服务器上。 Once installed on your local machine.一旦安装在您的本地计算机上。 You can create and manage database using SSMS .您可以使用SSMS创建和管理数据库。 A SQL server can have multiple databases.一个 SQL 服务器可以有多个数据库。 For using the database in your application you need to connect to SQL server.It can be either local or any other remote machine where your database is.要在您的应用程序中使用数据库,您需要连接到 SQL 服务器。它可以是本地计算机,也可以是数据库所在的任何其他远程计算机。 You can also connect to SQL server via SSMS or Visual Studio to view tables or execute queries.您还可以通过 SSMS 或 Visual Studio 连接到 SQL 服务器以查看表或执行查询。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM