Hello,
Our application uses DevForce classic and SQL Server. I'm having trouble adjusting the timeout options so that a save does not timeout after 30 seconds.
So my goal is to be able to adjust the timeout value during an insert or update operation.
I'm attempting to use transaction settings like this in the SaveOptions and I've tried with UseDTCOption.True and UseDTCOption.False.
IdeaBlade.Persistence.TransactionSettings settings =
new IdeaBlade.Persistence.TransactionSettings(
UseDTCOption.True,
System.Transactions.IsolationLevel.ReadUncommitted,
timeSpanOverride);
I think the timeout is definitely coming from the database connection because I can easily reproduce it by locking the table for a predetermined time.
The debug log has this error which further confirms this:
Exception occurred: System.Data.OleDb.OleDbException: Query timeout expired at
System.Data.Common.DbDataAdapter.UpdatedRowStatusErrors(RowUpdatedEventArgs
rowUpdatedEvent, BatchCommandInfo[] batchCommands, Int32 commandCount) at
System.Data.Common.DbDataAdapter.UpdatedRowStatus(RowUpdatedEventArgs
rowUpdatedEvent, BatchCommandInfo[] batchCommands, Int32 commandCount) at
System.Data.Common.DbDataAdapter.Update(DataRow[] dataRows, DataTableMapping
tableMapping) at System.Data.Common.DbDataAdapter.UpdateFromDataTable(DataTable
dataTable, DataTableMapping tableMapping) at
System.Data.Common.DbDataAdapter.Update(DataSet dataSet, String srcTable) at
IdeaBlade.Persistence.Server.TransactionManagerHelper.SaveTable(EntityTable
pTable, Boolean pDeleting, PostSaveHandler pPostSaveHandler, Boolean
pExcludeFromRefetch) at
IdeaBlade.Persistence.Server.TransactionManagerHelper.Save(DataSet pDataSet,
SaveOptions pSaveOptions)
Any help you can provide would be much appreciated.
Thanks!
Chris Hibler
chrishibler@decadesoftware.com