如何在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?