如何在Visual Studio 2015中使用数据库创建安装文件(.exe)? [英] How to create setup file(.exe) with database in Visual Studio 2015?

查看:90
本文介绍了如何在Visual Studio 2015中使用数据库创建安装文件(.exe)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我用数据库创建了一个简单的基本窗口表单,其中我使用了
创建新的SQL Server数据库
在Server Explorer中使用visual studio 2015创建数据库。

I've created a simple basic windows form with database where I used the Create New SQL Server Database in Server Explorer to create a database using visual studio 2015.

我的项目>>> https://www.dropbox.com/s/q3ioogci8kawpbl/testdbAutoIncrement.zip ?dl = 0

my project>>>https://www.dropbox.com/s/q3ioogci8kawpbl/testdbAutoIncrement.zip?dl=0

如何创建该应用程序的安装文件,以便可以在其他PC上安装和使用它而不会出现任何问题?

How do I create a setup file of that application so that it can be installed and used without any issues on other PCs?

谢谢!

推荐答案

听起来我为MS SQL创建了一个分离的MDF文件Server Express。你还知道吗?连接字符串是什么样的?
Sounds to me that you created a detached MDF file for MS SQL Server Express. Do you even know? What does the connectionstring look like?


这篇关于如何在Visual Studio 2015中使用数据库创建安装文件(.exe)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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