Named pipes (np:) don't support named instances in Managed SNI #2113
Labels
Area\Managed SNI
Issues that are targeted to the Managed SNI codebase.
🐛 Bug!
Issues that are bugs in the drivers we maintain.
Describe the bug
Native SNI supports server name in below format, while Managed SNI fails to work with it and throws error.
Server=np:localhost\\MSSQLSERVER02;
To reproduce
Console app targeting .NET 6/7
Expected behavior
Connect as Native SNI
Further technical details
Microsoft.Data.SqlClient version: 5.1.1, main
.NET target: .NET 6/7
Microsoft SQL Server 2022 (RTM-GDR) (KB5021522) - 16.0.1050.5 (X64)
Jan 23 2023 17:02:42
Copyright (C) 2022 Microsoft Corporation
Developer Edition (64-bit) on Windows 10 Pro 10.0 (Build 22621: ) (Hypervisor)
Operating system: Windows 11
The text was updated successfully, but these errors were encountered: