[英]Database is not connecting to visual studio
i have created a project in visual studio and created database in sql server. 我已经在Visual Studio中创建了一个项目,并在SQL Server中创建了数据库。 the problem is my database is not connecting to sql
问题是我的数据库未连接到sql
i have tried creating new database still not working. 我尝试创建新数据库仍然无法正常工作。 here check following images for understanding.
在这里检查以下图像以了解。 i think its simple string issue but i am confused here.
我认为它是简单的字符串问题,但我对此感到困惑。 in my sql server the server name is different.
在我的SQL Server中,服务器名称不同。 and in visual studio when i click on modify connection then the server name is different.
在Visual Studio中,当我单击“修改连接”时,服务器名称将不同。 i actually bought this software so i think this pc is new so need to change server names i think.
我实际上购买了此软件,所以我认为这台PC是新的,因此需要更改我认为的服务器名称。 check screenshots.
检查屏幕截图。 enter image description here
在此处输入图片说明
Connection string will be a mix of network path and credentials. 连接字符串将是网络路径和凭据的混合。
The reason is "The network path defined is not accessible in the current context". 原因是“在当前上下文中无法访问定义的网络路径”。
See the properties of the connection and try connecting to the IP 查看连接的属性,然后尝试连接到IP
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.