我在C#中开发了一个库存系统,使用的数据库是SQL服务器。现在我的问题是如何使用数据库部署我的项目并在客户端的机器上运行它我还有1周的时间来交付这个项目。我尝试了很多博客和网站,但都是徒劳的,我没有得到任何好的资源,这清除了我所有这些场景。当前的发布过程没有数据库文件,并向我显示错误:
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
请提出任何建议吗?
我正在使用Visual Studio 2013和SQL Server 2012!
答案 0 :(得分:0)
默认情况下,SQL Server在全新安装后禁用网络访问。您需要使用SQL配置管理器来允许与实例的远程连接。
见这篇文章:
http://www.romankagan.com/?p=118
如果在此之后仍无法连接,请确认计算机防火墙未阻止SQL Server端口。