So there is C# written application (the data importer), that is being run on the different server than the SQLServer database. I connect to the database at 23:37 and then - at 00:16 - this problem appears:
System.Data.SqlClient.SqlException (0x80131904): A transport-level error has occurred when receiving results from the server. (provider: Shared Memory Provider, error: 0 - No process is on the other end of the pipe.) ---> System.ComponentModel.Win32Exception (0x80004005): No process is on the other end of the pipe.
w System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action
1 wrapCloseInAction)
1 wrapCloseInAction)
w System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action
w System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose) w System.Data.SqlClient.TdsParserStateObject.ReadSniError(TdsParserStateObject stateObj, UInt32 error) w System.Data.SqlClient.TdsParserStateObject.ReadSniSyncOverAsync() w System.Data.SqlClient.TdsParserStateObject.TryReadNetworkPacket() w System.Data.SqlClient.TdsParserStateObject.TryPrepareBuffer() w System.Data.SqlClient.TdsParserStateObject.TryReadByteArray(Byte[] buff, Int32 offset, Int32 len, Int32& totalRead) w System.Data.SqlClient.TdsParser.TryReadSqlValue(SqlBuffer value, SqlMetaDataPriv md, Int32 length, TdsParserStateObject stateObj) w System.Data.SqlClient.SqlDataReader.TryReadColumnInternal(Int32 i, Boolean readHeaderOnly) w System.Data.SqlClient.SqlDataReader.TryReadColumnHeader(Int32 i) w System.Data.SqlClient.SqlDataReader.ReadColumnHeader(Int32 i) w System.Data.SqlClient.SqlDataReader.IsDBNull(Int32 i) w Company.Package.Importer.Database.TypeAwareDataReader.IsRemoved()
Do you know anything about issue? Should I recommend my user to check the SQL Server logs? Is there something that I can do on the application side? I do not have the direct access to the database (it's on my client machine).
Edit after flagged as a duplicate I saw the that question but in my case I am able to connect to the database via SQL Server Authentication. I have even processed four tables before getting the exception. The fifth table is being processed for 27 minutes and them boom, the error appears.