简体   繁体   English

将Microsoft Visual Studio 2010连接到SQL Server 2008 R2数据库

[英]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.

相关问题 无法将在VS2010中创建的数据库附加到SQL Server Studio 2008 R2 - Cannot attach database created in VS2010 to SQL Server studio 2008 r2 将数据库SQL Server 2008链接到Visual Studio 2010 - Linked database sql server 2008 to visual studio 2010 SQL SERVER 2008 R2 +恢复中的数据库 - SQL SERVER 2008 R2 + Database In Recovery SQL Server 2008 R2数据库降级 - sql server 2008 r2 database downgrade 如何将Visual Studio 2008中的SQL Server 2008 R2 Express Advanced和With Tools版本作为ClickOnce先决条件 - How to put SQL Server 2008 R2 Express Advanced and With Tools editions in the Visual Studio 2008 as ClickOnce prerequisites Log4net不从VS studio 2010登录到SQL Server 2008 R2 - Log4net does not log to SQL Server 2008 R2 from VS studio 2010 Access 2010 和 SQL Server 2008 R2 错误 3157 超时 - Access 2010 and SQL Server 2008 R2 Error 3157 Timeout 从C#Visual Studio 2013进入SQL Server 2008 R2程序? - step into a SQL server 2008 R2 proceudure from C# Visual Studio 2013 ? Microsoft SQL Server 2008 R2的索引自动增量 - Index autoincrement for Microsoft SQL Server 2008 R2 计划Microsoft SQL Server 2008 R2中的存储过程 - Schedule Stored Procedure in Microsoft SQL Server 2008 R2
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM