WinForms SQL连接 [英] WinForms SQL connection

查看:86
本文介绍了WinForms SQL连接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,

你们中的一位Win Forms专家可以告诉我在Win Forms应用程序上设置sql数据库访问的最佳方法吗?我们使用Active Directory,我们不希望密码在代码中可见,例如app.config。有人告诉我,我可能要建立一个网络服务,但我不相信。

感谢您的帮助,

Pearl

Hello,
Can one of you Win Forms experts tell me the best way to set up sql database access on a Win Forms application? We use Active Directory and we don’t want the password to be visible in the code, like the app.config. I was told I may have to set up a web service but I don’t believe that.
Thanks for your help,
Pearl

推荐答案

您可以使用Windows数据库的可信连接身份验证: http://www.connectionstrings.com/sql-server-2008 [ ^ ]
You can use a trusted connection to your database with windows authentication : http://www.connectionstrings.com/sql-server-2008[^]


这篇关于WinForms SQL连接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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