.Net应用程序中的SQL Server [英] SQL Server in .Net Applications

查看:146
本文介绍了.Net应用程序中的SQL Server的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Backend中的SQL Server在.Net(C#)中创建一个桌面应用程序(例如,酒店).现在,我想将此软件安装在PC中没有SQL Server的客户端PC中.我是否必须在客户端PC上安装整个SQL Server软件,或者是否有其他选择可以避免它.
如果有其他替代方法,请对其进行解释.

I am creating a Desktop Application (say for Hotel) in .Net(C#) using SQL Server in Backend.Now,I want to install this software in client''s PC who is not having SQL Server in his PC.Is it mandatory for me to install the whole SQL Server software in client''s PC or is there any other option so that I can avoid it.
If any other alternative is there so please Explan it.

推荐答案

如果您的数据库位于另一台计算机(后端,服务器)上,则无需安装SQL Server,只需在必要时部署客户端程序集(dll).

欢呼
If your database is on a different computer (backend, server) there is no need to install SQL server, just deploy the client assemblies (dll) if necessary.

Cheers


我是否必须在客户端PC上安装整个SQL Server软件
不.这不是强制性的.

如果还有其他选择,请解释一下
您只需要连接到SQL Server中托管数据库的数据库服务器即可.您可以拨打远程服务器并开始工作.当前,您必须使用连接字符串与本地系统进行通信,只需对其进行修改以与远程DB服务器通信即可.
Is it mandatory for me to install the whole SQL Server software in client''s PC
No. It is not mandatory.

If any other alternative is there so please Explan it
You just need to connect to the database server where the database is hosted in SQL Server. You can make calls to the remote server and work. Currently you must be using connection string to local system to communicate, just modify it to talk to remote DB server and you are all set.


我相信数据库服务器位于您的桌面环境中,并且客户在他的环境中没有SQL Serever.如果您确实想绕过SQL Server安装并在应用程序中进行尽可能小的更改,请使用SQL Express.
使用以下链接

http://www.microsoft.com/downloads/details.aspx?familyid = 220549b5-0b07-4448-8848-dcc397514b41& displaylang = zh_CN [
I believe the database server is in your desktop environment and the client didn''t have SQL Serever in his environment. If you really want to bypass SQL Server installation and to make as small changes in your application as possible use SQL Express.
Use the following link

http://www.microsoft.com/downloads/details.aspx?familyid=220549b5-0b07-4448-8848-dcc397514b41&displaylang=en[^]

Simple, isn''t ??? :cool:

If that really helps you out..please make this entry as answer


这篇关于.Net应用程序中的SQL Server的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆