[英]Connect Microsoft Visual Studio 2010 to SQL Server 2008 R2 database
I want to use my database in Visual Studio. 我想在Visual Studio中使用我的数据库。 I attach the database in SQL Server and when I want to run the project in Visual Studio 2010, I get this error:
我在SQL Server中附加了数据库,当我想在Visual Studio 2010中运行项目时,出现此错误:
http://i57.tinypic.com/2cz3rra.jpg http://i57.tinypic.com/2cz3rra.jpg
I enabled TCP/IP and disabled the firewall, and in SQL Server, remote connection is checked. 我启用了TCP / IP并禁用了防火墙,并且在SQL Server中检查了远程连接。 My port is 1433 and everything is ok for Enable remote connection.
我的端口是1433,启用远程连接一切正常。
I connect to SQL Server by localhost .. and don't know what is my instance 我通过本地主机..连接到SQL Server,但不知道我的实例是什么
Perhaps my project is not work good and error is for my project .. 也许我的项目无法正常工作,而错误是我的项目..
I put my project link in first comment , any body can check it for errors ? 我将项目链接放在第一条评论中,任何机构都可以检查它的错误? This is very important for me !!
这对我来说很重要!
Check whether your id has access on the specified database(and server) or not. 检查您的ID是否可以访问指定的数据库(和服务器)。 Also check whether you've enabled SQL server browser or not.
还要检查是否已启用SQL Server浏览器。 Required services for the server in SQL configuration manager should be running.
SQL配置管理器中服务器的必需服务应正在运行。
检查您的连接字符串,或者您的防火墙正在阻止连接
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.