简体   繁体   English

我是否需要在计算机上设置sql server才能运行vs 10中制作的c#桌面应用程序文件?

[英]DO I need to setup sql server in a computer to run c# desktop application file made in vs 10?

我有一个使用SQL Server 8在vs 10中制作的桌面应用程序。我已经在项目的app_code文件夹中添加了mdf文件,并且app.config进行了相应更改。该应用程序已发布,并且可以作为安装文件(.exe)使用。我想将其安装在另一台PC中,是否需要在该PC中安装sql server?

The short answer is Yes 简短的答案是

The idea is database needs a server to host it and an engine to run it 这个想法是数据库需要一个服务器来托管它,并需要一个引擎来运行它

mdf file has no value without sql serve and access files has nothing to do if you don't have MS Access installed, etc. 如果没有安装SQL Access,则mdf文件没有价值,如果没有安装MS Access,则访问文件无关。

But this does not mean db server must be installed on the client machine that has the application. 但这并不意味着必须在具有该应用程序的客户端计算机上安装数据库服务器。 as it can be on another machine or on the cloud (ie hosted on the internet) 因为它可以在另一台机器上或在云上(即托管在互联网上)

As long as your application is connecting to that machine/server 只要您的应用程序连接到该计算机/服务器

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

相关问题 在c#中为数据库设置SQL Server - Setup SQL Server for database made in c# 使用C#桌面应用程序控制对SQL Server数据库文件的访问 - Controlling access to SQL server database file with C# desktop application VS 2010 C#使用SQL Server数据库创建安装文件 - VS 2010 C# Create Setup File with SQL Server database 如何制作包含C#应用程序和sql server的安装文件 - How To make setup file that contains C# application and sql server .NET Framework 4桌面应用程序[C#]是否将运行Windows 8、8.1和10 - Will .NET Framework 4 desktop application [C#] run Windows 8, 8.1 and 10 如何创建 C# 桌面应用程序设置文件以及数据库 - How to create C# desktop application setup file along with database 如何在另一台计算机上运行包含本地SQL Server数据库的C#app? - How can I run C# app which contains local SQL Server database on another computer? 如何在连接局域网的其他计算机上使用 SQL Server 数据库运行桌面应用程序 - How to run desktop application using SQL Server database on other computer connected with LAN 我需要将.mdb数据库附加到C#桌面应用程序 - I need to attach .mdb database to C# desktop application 使用 SQL Server 数据库发布 C# 桌面应用程序 - Publish C# Desktop Application with SQL Server database
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM