using (TransactionScope ts =newTransactionScope())
{
...
ts.Complete();
}
using (TransactionScope ts =newTransactionScope(TransactionScopeOption.Required,TimeSpan.FromMinutes(5)))
{
...
ts.Complete();
}
But it did not seem to make a difference. I suppose the easiest option would be to increase the timeout for every sql command in my dal but i feel that the 30 second timeout is sufficient for a single command.
Appreciate if someone could tell me how this should be done correctly. Thanks
Try to run the same proc/T-SQL from query analyzer within a transaction and see how long it takes. Try to tune your queries to run under 1-2 secs.
|||Hi, i made the sql as efficient as possible but still no joy so i figured that it wasn't a good idea to wrap a transaction around what i was doing. I simply logged whether the process had been completed and all is well.
1 comment:
The Best Slots on the Planet
The Best Slots on the 충청북도 출장샵 Planet · Golden Dragon Casino · Superlotto · Sloto Cash · 보령 출장마사지 Big Juan Casino · Vegas Slots · 777 Casino · 거제 출장샵 777 평택 출장안마 Slots 거제 출장안마 · Royal Panda
Post a Comment