简体   繁体   English

数据库未连接到Visual Studio

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

相关问题 连接到Visual Studio中的数据库以获取会员资格 - connecting to a database in visual studio for membership 将MySQL数据库与Visual Studio连接 - Connecting MySQL database with Visual Studio SQL 数据库未连接到 Visual Studio 2015 - SQL database not connecting to the visual studio 2015 连接到Visual Studio Express 2013 for Web中的数据库 - Connecting to database in Visual Studio Express 2013 for Web 从 Visual Studio 连接到 SQL Server 数据库的问题 - Issue with connecting to SQL Server database from Visual Studio 在 Visual Studio 2008 中连接到 SQL Server 2012 数据库 - Connecting to a SQL Server 2012 database in Visual Studio 2008 通过C#/ Visual Studio 2012连接到外部mysql数据库 - Connecting to external mysql database through C#/Visual Studio 2012 在Visual Studio Windows Form中连接数据库和获取数据时出现问题 - Problems in connecting to the database and fetching data in Visual Studio Windows Form 将SQL Server 2012数据库连接到Visual Studio 2012 - Connecting SQL Server 2012 database to Visual Studio 2012 这是将数据库(.mdf文件)连接到Visual Studio项目的正确方法吗? - Is this the correct way for connecting database (.mdf file) to visual studio project?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM