Click here to Skip to main content
15,890,512 members
Home / Discussions / Database
   

Database

 
Questionautomated mail Pin
vjvjvjvj10-Sep-08 3:49
vjvjvjvj10-Sep-08 3:49 
AnswerRe: automated mail Pin
Tim Carmichael10-Sep-08 6:46
Tim Carmichael10-Sep-08 6:46 
GeneralRe: automated mail Pin
Wendelius10-Sep-08 10:26
mentorWendelius10-Sep-08 10:26 
QuestionThread problem in multithreaded database applications Pin
ahmeday10-Sep-08 3:26
ahmeday10-Sep-08 3:26 
AnswerRe: Thread problem in multithreaded database applications Pin
Ashfield10-Sep-08 3:39
Ashfield10-Sep-08 3:39 
GeneralRe: Thread problem in multithreaded database applications Pin
ahmeday10-Sep-08 21:36
ahmeday10-Sep-08 21:36 
GeneralRe: Thread problem in multithreaded database applications Pin
Ashfield11-Sep-08 8:40
Ashfield11-Sep-08 8:40 
GeneralRe: Thread problem in multithreaded database applications Pin
ahmeday11-Sep-08 20:54
ahmeday11-Sep-08 20:54 
The application is three-tied so it is hard to post the code here Smile | :)

Exactly the error message is related to the TdsParser. In Ado.net, the connection breaks after some time for example 10-20 hours. And our idea to solve this is when the connection disconnects, we create a new connection and send the old one to the pool. What you suggest about this? Is it reasonable. And our program is windows service. It runs all the time on background. If network connection breaks from ethernet, out sql server connection may be disconnect. Our server and our program are in diffent machines. there are many reasons.

This is error that was written to the log. It is in event viewer:

"Message : Object reference not set to an instance of an object.
Source : System.Data
Stack : at System.Data.SqlClient.TdsParser.AddSqlErrorToCollection(SqlErrorCollection& temp, SqlErrorCollection& InputCollection)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)
at System.Data.SqlClient.TdsParserStateObject.ReadSniError(TdsParserStateObject stateObj, UInt32 error)
at System.Data.SqlClient.TdsParserStateObject.ReadSni(DbAsyncResult asyncResult, TdsParserStateObject stateObj)
at System.Data.SqlClient.TdsParserStateObject.ReadPacket(Int32 bytesExpected)
at System.Data.SqlClient.TdsParserStateObject.ReadBuffer()
at System.Data.SqlClient.TdsParserStateObject.ReadByte()
at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)
at System.Data.SqlClient.SqlDataReader.ConsumeMetaData()
at System.Data.SqlClient.SqlDataReader.get_MetaData()
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.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method)
at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method)
at System.Data.SqlClient.SqlCommand.ExecuteDbDataReader(CommandBehavior behavior)
at System.Data.Common.DbCommand.System.Data.IDbCommand.ExecuteReader(CommandBehavior behavior)
at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior)
at System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior)
at System.Data.Common.DbDataAdapter.Fill(DataTable dataTable)
at EnmosService.Data.PackageLog.dsPackageLogTableAdapters.PrcDailyPackagesStatusTableAdapter.PrcDailyPackages(Nullable`1 DICId, Nullable`1 Sent, Nullable`1 Receive, Nullable`1 Error)
at EnmosService.Data.PackageLog.DailyPackagesStatus.SetDailyPack "

Thanks a lot.
Questionsql problrm Pin
mahmoudinirat10-Sep-08 2:11
mahmoudinirat10-Sep-08 2:11 
AnswerRe: sql problrm Pin
Ashfield10-Sep-08 3:21
Ashfield10-Sep-08 3:21 
GeneralRe: sql problrm Pin
mahmoudinirat10-Sep-08 20:49
mahmoudinirat10-Sep-08 20:49 
GeneralRe: sql problrm Pin
Ashfield11-Sep-08 9:07
Ashfield11-Sep-08 9:07 
AnswerRe: sql problrm Pin
shubhi10-Sep-08 22:21
shubhi10-Sep-08 22:21 
GeneralRe: sql problrm Pin
mahmoudinirat10-Sep-08 22:54
mahmoudinirat10-Sep-08 22:54 
AnswerRe: sql problrm Pin
Venkat Eswaran12-Sep-08 9:12
Venkat Eswaran12-Sep-08 9:12 
QuestionLimit in SQL Server Pin
Syed Shahid Hussain9-Sep-08 22:36
Syed Shahid Hussain9-Sep-08 22:36 
AnswerRe: Limit in SQL Server Pin
Giorgi Dalakishvili9-Sep-08 23:21
mentorGiorgi Dalakishvili9-Sep-08 23:21 
Questioninstalled sql server 2005 error Pin
bhatted9-Sep-08 19:02
bhatted9-Sep-08 19:02 
AnswerRe: installed sql server 2005 error Pin
Venkat Eswaran12-Sep-08 9:15
Venkat Eswaran12-Sep-08 9:15 
Questionstock software question, about MA Pin
followait9-Sep-08 17:34
followait9-Sep-08 17:34 
AnswerRe: stock software question, about MA Pin
Ashfield9-Sep-08 21:30
Ashfield9-Sep-08 21:30 
GeneralRe: stock software question, about MA Pin
followait9-Sep-08 22:12
followait9-Sep-08 22:12 
GeneralRe: stock software question, about MA Pin
Mycroft Holmes9-Sep-08 22:19
professionalMycroft Holmes9-Sep-08 22:19 
QuestionMS Excel "Database" Pin
nelsonpaixao9-Sep-08 14:29
nelsonpaixao9-Sep-08 14:29 
AnswerRe: MS Excel "Database" Pin
leckey9-Sep-08 15:06
leckey9-Sep-08 15:06 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.