Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

I am writing parameterized data to SQL at 1Hz from several test cell computers (maximum 16, currently running 5 or less). The code works fine though I was losing connection sometimes when using SQL Developer edition. We installed the full SQL server last week and all was well until I got the following error this morning.

 

What would cause this error?

Should I leave the connection open to avoid extra overhead in opening and closing it every second?

How should I recover from this error? Close the connection, reopen, and retry?

 

10:55:21 FlightRecorder

System.InvalidOperationException: Internal connection fatal error.

at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)

at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString)

at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async)

at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result)

at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe)

at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()

at DEER_DAQ.modFunctions.BuildSQLDataString()

 

Thanks.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...