Remote connection to SQL Server DB from WPF application

廉价感情. 提交于 2019-12-11 04:48:16

问题


Do I need to install SQL Server (Client tools) to a computer on which I am going to put one WPF application, which accesses SQL Server DB remotely?

The PC will have fresh new Windows and I wonder is it enough for running the application just to install the appropriate .NET Framework and to configure the connection string (no installation of any SQL Server stuff).

P.S. (DB - SQL Server Express 2016.) Let's say I've configured the server's DB and Firewall to accept remote access.

Thanks.

-- Conclusion: No need of SQL Server Client tools in the above case.


回答1:


No, you'll only need appropriate .NET Framework.

I'm unable to find any sources to my statement but I have used a remote database server for development before so it should not be an issue when deploying an application.

I found this instruction for SQL Server Compact and there they package sql-binaries with the application. When contacting a remote sql-server your deployed program should have all it need.

https://technet.microsoft.com/en-us/library/ms174619(v=sql.110).aspx



来源:https://stackoverflow.com/questions/39700131/remote-connection-to-sql-server-db-from-wpf-application

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!