简体   繁体   English

在.NET Windows应用程序中创建可以使用SQL Server 2005的EXE或安装文件

[英]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.

相关问题 如何使用InstallShield LE为带有SQL Server 2012本地数据库的Visual Studio 2012 Windows窗体应用程序创建setup.exe文件 - How to create a setup.exe file using InstallShield LE for a Visual Studio 2012 Windows Forms Application with SQL Server 2012 Local Database 如何使用SQL Server为C#Windows应用程序创建安装程序包 - How to create a setup package for C# Windows application with SQL server 通过Windows C#安装项目安装SQL Server 2005 - Installing SQL server 2005 through windows c# setup project 如何在C#Windows应用程序中添加.mdf文件以创建.exe安装文件 - How to add .mdf file to create .exe setup file in C# windows application 如何在已经具有SQL Server 2005 Express的计算机上设置使用SQL Server 2008 Express的应用程序 - How can I setup an application that uses SQL Server 2008 Express on a machine that already has SQL Server 2005 Express 如何在Visual Studio 2013中创建安装程序/ exe,包括SQL Server数据库文件? - How to create setup/exe in Visual Studio 2013 including a SQL Server database file? 在安装exe应用程序中无法连接到本地SQL Server数据库 - Connecting to a local SQL Server database does not work in the setup exe application 如何创建一个windows窗体应用程序(.exe)链接到SQL服务器,并具有审批功能(PDF/PNG,冲压审批) - How to create A windows form application (.exe) linked to the SQL server, and having an Approval Function (PDF/PNG, Stamping approval) 将本地计算机上的excel文件导入SQL Server 2005 - Import excel file which is on local machine to SQL server 2005 我可以使用Application(GUI)和Windows Service创建一个项目,并使用一个安装程序安装两者吗? - Can I create one project with Application(GUI) and Windows Service and have one setup which installs both?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM