Avatar of CL
CL
Flag for Malaysia asked on

Application VM found connection error event log.

  • Type: System.Data.SqlClient.SqlException
  • Class: 20
  • LineNumber: 0
  • Number: -1
  • Server: DBServerName
  • State: 0
  • Source: .Net SqlClient Data Provider
  • ErrorCode: -2146232060
  • Message: <ii>A transport-level error has occurred when receiving results from the server. (provider: Session Provider, error: 19 - Physical connection is not usable)</ii>

Usually what will causing this event?  and notice it only happen on selected time frame...  
I not sure is the SQL Application issue or the OS layer (e.g. during VSS the SQL is stop processing.. or others...)
Microsoft SQL ServerHyper-VWindows Server 2016

Avatar of undefined
Last Comment
Raja Jegan R

8/22/2022 - Mon
Pradeep Kini

There could be several reasons for this error. where are the VM hosted and the is the DB server also a VM. Its quite common in the cloud if you are using hosted sql. also when you notice this is either the DB being failed over or your app VM doing a VMotion or if HyperV liveMigration ?

could you provide additional info on your setup there ?
Raja Jegan R

Kindly request you to check the SQL Server Configuration Manager and see whether the IP mentioned under TCP\IP Protocol is matching with your Server IP and Port No. If not, then change it once and restart to get it fixed.

If the above doesn't help, try the below one..
Check the SNP features as mentioned by the MS Engineer in the below thread..
https://social.msdn.microsoft.com/Forums/sqlserver/en-US/95fe26d2-2e6c-4c6b-b02d-10794e92dc7a/sqlstate-08s02-smux-provider-physical-connection-is-not-usable?forum=sqldataaccess
CL

ASKER
HI Kini, thanks for the sharing. It a private virtualization platform which running on hyper-V.

It a standalone DB server setup, without SQL always ON. and there is no fail over happen as well.

We notice is consistent happen on certain hours (e.g. 2am - 3am) we are still checking whether have any backup job running that paused the VM state. but yet to figure out any.


hi Raja, Thanks for sharing, all information is match and is in order.
Your help has saved me hundreds of hours of internet surfing.
fblack61
ASKER CERTIFIED SOLUTION
Pradeep Kini

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Raja Jegan R

>> Source: .Net SqlClient Data Provider

As the error indicates the source is .Net SqlClient, kindly check for any program or services running on the machine and trying to connect to SQL Server in the same machine or different machine..
And ensure the below items are done..
1. Check whether the latest Service packs are installed for that SQL Server instance.
2. Check whether Remote connections are enabled properly for your SQL Server instance.(this will help resolve any connectivity issues)
https://knowledgebase.apexsql.com/configure-remote-access-connect-remote-sql-server-instance-apexsql-tools/