How to fix "Named Pipes Provider error: 40" When trying to open connection?
How to fix "Named Pipes Provider error: 40" When trying to open connection?
我正在尝试制作一个将查询插入 Oracle 数据库 的按钮。但是当我尝试打开连接时弹出错误消息:
SqlConnection sqlc = new SqlConnection(IssueTracker.Properties.Settings.Default.ConnectionString);
sqlc.Open();
在 sqlc.Open();
休息,消息:
Additional information: A network-related or instance-specific error occurred while establishing a connection to 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. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)
我正在使用 Visual Studio 2015 Community 并且我已经安装了 ODAC。
我已经看过其他人的问题,但他们没有帮助。这让我感到困惑,因为我可以用数据填充 DataGridView
和 comboBox
。有谁知道我做错了什么?
我做错了,Alex Poole为我摇铃。
要访问 Oracle 数据库,您需要使用 OleDbConnection conn = new OleDbConnection();
我正在尝试制作一个将查询插入 Oracle 数据库 的按钮。但是当我尝试打开连接时弹出错误消息:
SqlConnection sqlc = new SqlConnection(IssueTracker.Properties.Settings.Default.ConnectionString);
sqlc.Open();
在 sqlc.Open();
休息,消息:
Additional information: A network-related or instance-specific error occurred while establishing a connection to 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. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)
我正在使用 Visual Studio 2015 Community 并且我已经安装了 ODAC。
我已经看过其他人的问题,但他们没有帮助。这让我感到困惑,因为我可以用数据填充 DataGridView
和 comboBox
。有谁知道我做错了什么?
我做错了,Alex Poole为我摇铃。
要访问 Oracle 数据库,您需要使用 OleDbConnection conn = new OleDbConnection();