安装exefile后如何通过app.config文件维护用户credentails更改数据库 [英] how to maintain user credentails changes through app.config file for database after install exefile

查看:79
本文介绍了安装exefile后如何通过app.config文件维护用户credentails更改数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我有一个疑问,如何在用户系统中允许用户更改配置文件以进行数据库访问.

例如:我正在使用系统中的credentails维护数据库.
那么安装后如何用他的cretentails登录?怎么可能?

我使用c#和sqlserver 2005开发了我的项目.我使用自己的凭据维护数据库,但是当将其安装在客户端计算机中时,环境会有所不同.那么,如何维护用户的后遗症呢?

例如,我的水晶报表是基于我系统中的credentails运行的,但是如何允许系统中的用户基于其credentails调用报表?

plz对此提出任何建议,并提供任何示例来维护用户状态.

hello every body,

I have a doubt, how to allow user changes on config file for database accesing in user system.

For example: I am mainting database with my credentails in my system.
then after instalation how to user login with his cretentails? how is it posible?

I developed my project using c# and sqlserver 2005. I maintain my database with my credentials, but when it is installed in client machine the environment is diferent. So what is the way to maintain the user credentails?

for example my crystal report is working based on my credentails in my system but how to allow user in his system to call reports based on his credentails?

plz give any sugestions on this and give any examples to maintain user status.

推荐答案

您可以在db中定义用户凭据信息并对其进行加密. > 这样,您或其他任何用户每次登录应用程序时,都可以验证用户\密码组合.
You can define the user credential information in the db and have them encrypted.
This way you can verify the user\password combination each time when you or any other user logs in the application.


这篇关于安装exefile后如何通过app.config文件维护用户credentails更改数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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