将我的Windows窗体/ SQLDataBase上载到github

问题描述 投票:0回答:1

我创建了一个应用程序,该应用程序使用添加->新项->基于服务的数据库连接到我在c#visual studio 2015中创建的SqlDataBase。我已将应用程序推送到Github,但是当我的朋友尝试运行该程序时,他遇到了以下异常:

A network-related or instance-specific error occurred while establishing a connection to SQL Server.
The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections

我的连接字符串是:数据源=(LocalDB)\ MSSQLLocalDB; AttachDbFilename = | DataDirectory | \ RegisterDataBase.mdf;集成安全性= True

c# database github visual-studio-2015
1个回答
0
投票

您的连接指向您的SQL Server Express LocalDB实例。

<< [LocalDB不允许远程连接,有关用法和限制的更多详细信息,请参考documentation

此问题已在herehere中得到解决。
© www.soinside.com 2019 - 2024. All rights reserved.