使用win forms app访问远程数据库 [英] Accesing remote DB using win forms app

查看:91
本文介绍了使用win forms app访问远程数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好吧



我正在开发一个asp.net应用程序(我使用sql server 2008)。在这个asp.net应用程序的最后一页我将某些值插入远程DB testDB。我还使用winforms应用程序访问testDB并显示某些值。一切顺利,但我需要知道这个方法的任何问题?

解决方案

访问远程数据库服务器可能存在安全风险,因为你必须打开服务器上防火墙中的数据库端口。这为黑客和脚本小子试图破解你的数据库服务器打开了大门。

考虑使用像webapi这样的webservices,普通的旧web服务,WCF或其它可以访问你可以更好地控制的方法的其他内容。 / BLOCKQUOTE>

Hi all

I'm developing an asp.net application (i use sql server 2008) .In this at the last page of asp.net application i insert certain values to a remote DB testDB . Also i use a winforms app for accessing testDB and displaying certain values. Every thing goes fine but i need to know is any issues with this method ?

解决方案

Accessing a remote db server is potentially a security risk, as you have to open the ports of the db in the firewall on the server. This opens doors to hackers and script kiddies trying to hack your db server.
Consider using webservices like webapi, plain old webservices, WCF or something else which encapsultates the access to methods you have better control of.


这篇关于使用win forms app访问远程数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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