[英]Create an EXE or setup file in .NET Windows application which can use SQL Server 2005
I have been working on a C# windows application with SQL Server 2005, and now I need to deploy it to other system. 我一直在使用SQL Server 2005开发C#windows应用程序,现在我需要将它部署到其他系统。
I created a setup file using setup an deployment filling all the prerequisite but as I deploy it on another computer error keeps popping up saying it can't open connection. 我使用设置部署填充所有先决条件创建了一个安装文件,但是当我在另一台计算机上部署时,错误不断弹出,说它无法打开连接。
I am thinking my problem here is in deployed project database is missing. 我在想我的问题是在部署的项目数据库中丢失了。
Now my question is how can I use this database and I have connection string that work only in my system so I need to change this connection string too. 现在我的问题是如何使用这个数据库,我的连接字符串只能在我的系统中工作,所以我也需要更改这个连接字符串。
How can I do that? 我怎样才能做到这一点?
Please help me tackle my problem... 请帮我解决我的问题......
thank you in advance 先感谢您
Are you using sql compact or sql ? 你使用的是sql compact还是sql? if it is sql compact, you can add the file to you project and join it to you project and deploy it, if it is SQL you need to have an Public WAN SQL server so you app can access it thru internet.
如果它是sql compact,你可以将文件添加到项目中并将其加入项目并进行部署,如果是SQL,则需要有一个公共WAN SQL服务器,以便应用程序可以通过Internet访问它。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.