简体   繁体   中英

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. 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

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". That error always come up if the state is "Stopped"

在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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