Skip to content

Incorrect docs for ServerCertificate #4351

Description

@saurabh500

Describe the bug

The documentation at https://learn.microsoft.com/en-us/dotnet/api/microsoft.data.sqlclient.sqlconnectionstringbuilder.servercertificate?view=sqlclient-dotnet-core-6.1 about ServerCertificate property of SqlConnectionStringBuilder is incorrect.

Image

The fix needs to be made in https://github.com/dotnet/SqlClient/blame/f50d21ce320194ff94c7e396f479482fca65a4cc/doc/snippets/Microsoft.Data.SqlClient/SqlConnectionStringBuilder.xml#L108

The following lines should be deleted. The ServerCertificate property is applicable to encryption regardless of Integrated Security/ServerSPN etc

  <format type="text/markdown">
          <![CDATA[  
This property corresponds to the "ServerSPN" and "Server SPN" keys within the connection string.  
> [!NOTE]
> This property only applies when using Integrated Security mode, otherwise it is ignored.
]]>

Metadata

Metadata

Labels

Area\DocumentationUse this for issues that requires changes in public documentations/samples.

Type

No type
No fields configured for issues without a type.

Projects

Status
Backlog

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions