python (65.2k questions)
javascript (44.3k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (13k questions)
SQL Server Connection Issues with .NET 6
Does anyone know how to connect to a SQL server forcing NTML with a .NET 6 SqlClient connection string
var cnn = new SqlConnectionStringBuilder()
{
ApplicationIntent = ApplicationIntent.ReadWrite,
Da...

Pat B
Votes: 0
Answers: 0
SqlClient Traces on Azure
How do I enable and view SqlClient traces on Azure?
I have a web app hosted on Azure and it uses SqlClient.
I know that we can use XPerf/PerfView to collect and view traces. But I am not sure how to u...
coder
Votes: 0
Answers: 1
SqlClient equivalent of "BEGIN TRY...END TRY"
We are trying to replicate the functionality of the following SQL, but using SqlClient code in c#.
Consider the following SQL:
BEGIN TRANSACTION
-- lots of critical SQL that must be atomic
--...
David I. McIntosh
Votes: 0
Answers: 1
Enrich callback not being called in OpenTelemetry.net, SqlClient
This is on .NET 6.
So I've added an enrich callback with the purpose of adding each parameter as a tag:
appBuilder.Services.AddOpenTelemetryTracing((builder) =>
builder
...
Oliver Armitage
Votes: 0
Answers: 1