使用C#.net和SQL Express2005作为后端时如何制作桌面应用程序的exe [英] How to make exe of desktop application while using C#.net and sql express2005 as backend

查看:89
本文介绍了使用C#.net和SQL Express2005作为后端时如何制作桌面应用程序的exe的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经使用C#和SqlExpress2005开发了桌面应用程序.连接字符串与服务器名称,数据库名称等信息一起存储在app.config文件中.如果我将此应用程序安装在客户端桌面上,则需要执行哪些步骤以及如何在app.config文件中替换客户端SqlServer名称和密码.


请给我一个关于这个问题的主意,它很紧急.

提前谢谢.

Randeep chauhan

I have devolped a desktop application using C# and SqlExpress2005. The connectionstring is stored in app.config file along with the server name, database name etc. infomation. If I install this application on a client desktop what steps are required and how to replace client SqlServer name and passord in app.config file.


Please give me an idea on this problem ,it''s urgent.

Thanks in advance.

Randeep chauhan

推荐答案

您可以尝试构建 ^ ]项目.
将密码直接存储在app.config中不是一个好主意-在存储在app.config文件中时尝试对这些密码进行加密-请参见
You can try to build a setup and deployment[^] project for the exe file.
Storing passwords directly in app.config is not a great idea - try and encrypt these passwords while storing in the app.config file - see here[^] for that.


http://msdn.microsoft.com/en-us/library/ms953320.aspx [ ^ ]


这篇关于使用C#.net和SQL Express2005作为后端时如何制作桌面应用程序的exe的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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