简体   繁体   English

将数据库连接到Visual Studio 2010是否需要SQL Management Studio?

[英]Is SQL Management Studio required to connect a database to Visual Studio 2010?

I can't download SQL Management Studio on my laptop, so I gave up trying. 我无法在笔记本电脑上下载SQL Management Studio,因此放弃了尝试。 I already have my database (got it from elsewhere) and I cannot connect it to my Visual Studio. 我已经有数据库(从其他地方得到它),并且无法将其连接到Visual Studio。 It keeps giving me this error... 它一直给我这个错误...

A network-related or instance-specific error occurred while establishing a connection to SQL Server. 建立与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. 验证实例名称正确,并且已将SQL Server配置为允许远程连接。 (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server) (提供者:命名管道提供程序,错误:40-无法打开与SQL Server的连接)

I am wondering if it is a MUST to have SQL Management Studio if I want to connect my databse to the website I created in Visual Studio? 我想知道是否要将SQL Management Studio连接到我在Visual Studio中创建的网站,这是否必须具有SQL Management Studio? I assigned/connected my data source = localhost. 我分配/连接了我的数据源=本地主机。

When I downloaded Visual Studio 2010, only 3 files were included in the SQL Server 2008 folder..."SQL Server Configuration Manager", "SQL Server Error and Usage Reporting" and "SQL Server Installation Center". 当我下载Visual Studio 2010时,SQL Server 2008文件夹中仅包含3个文件...“ SQL Server配置管理器”,“ SQL Server错误和使用情况报告”和“ SQL Server安装中心”。

no you don not need the Business management studio it to connect to databases in VS2010. 不,您不需要Business Management Studio即可连接到VS2010中的数据库。 you do need Sql Server however. 但是您确实需要Sql Server。

you can try installing SQL Express (which is free) 您可以尝试安装SQL Express(免费)

If you're trying to connect to a database already running on another machine, it sounds like you need the native client. 如果您尝试连接到已经在另一台计算机上运行的数据库,则听起来您需要本机客户端。

Download it from here: http://www.microsoft.com/en-us/download/details.aspx?id=16978#SNAC 从这里下载: http : //www.microsoft.com/en-us/download/details.aspx?id=16978#SNAC

Here's the solution: 解决方法如下:

Click All Programs --> choose the Microsoft Server 2008 folder --> Configuration Tools --> SQL Server Configuration Manager --> SQL Server Services. 单击所有程序->选择Microsoft Server 2008文件夹->配置工具-> SQL Server配置管理器-> SQL Server服务。

Now, make sure that the "State" of the SQL Server is "Running" 现在,确保SQL Server的“状态”为“正在运行”

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM