简体   繁体   English

制作ADO.NET实体数据模型时无法连接到SQL Server

[英]Can't connect to SQL server while making ADO.NET entity data model

I think that the picture below is self explanatory. 我认为下面的图片不言自明。 The problem is that I start adding a ADO.NET Entity data model with database first but whenever I try to do it, I don't get a connection string when I choose the type of connection. 问题是,我首先开始使用数据库添加ADO.NET实体数据模型,但是每当尝试这样做时,选择连接类型时都不会得到连接字符串。 Hope the picture will be of help because I don't know exactly how to describe the problem. 希望图片对您有所帮助,因为我不知道该如何描述问题。

图片

you should, open the SQL Server Configuration Manager and 您应该打开“ SQL Server配置管理器”,然后

1) verify the sql server service is up
2) make sure the server and client protocols are set
3) verify your sql server instance NAME. for ex) . or .\SQLEXPRESS or something else
4) check your firewall

best of luck. 祝你好运。

Make sure the State of the SQL Server is "Running". 确保SQL Server的状态为“正在运行”。 That error always come up if the state is "Stopped" 如果状态为“已停止”,则总是会出现该错误

在此处输入图片说明

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

相关问题 如何仅通过添加ADO.NET实体数据模型ASP.NET MVC 3连接到SQL Server数据库和获取数据 - How to Connect to SQL Server Database and Fetch datas by Just adding ADO.NET Entity Data model ASP.NET MVC 3 在实体框架 ADO.NET 实体数据模型中导入 SQL Server 函数时出错 - Error importing SQL Server function in Entity Framework ADO.NET Entity Data Model 使用ADO.NET实体数据模型计时SQL查询 - Timing Sql Queries with ADO.NET Entity Data Model 添加ADO.NET实体数据模型时,Visual Studio 2017不显示服务器名称 - While adding ADO.NET entity data model the Visual Studio 2017 does not showing server name 无法使用“ADO.NET 实体数据模型”创建数据库 Model:缺少程序集? - Can't create Database Model using 'ADO.NET Entity Data Model': missing assemblies? 无法从ado.net连接到SQL Server数据库 - Couldn't connect to sql server database from ado.net ADO.NET实体数据模型 - ADO.NET entity data model ADO.NET实体数据模型BUG - ADO.NET Entity Data Model BUG Npgsql Entityframework-无法看到ADO.net实体数据模型的Postgres提供程序 - Npgsql Entityframework - Can't see Postgres provider for ADO.net Entity Data Model 无法使用 ADO.NET 建立到 SQL Server 的连接 - Can't Establish A Connection To SQL Server Using ADO.NET
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM