RE: Timeout Expired for no apparent reason
From: Sami Samir (SamiSamir_at_discussions.microsoft.com)
Date: 08/06/04
- Previous message: Steve S: "RE: Timeout Expired for no apparent reason"
- In reply to: Steve S: "RE: Timeout Expired for no apparent reason"
- Next in thread: Steve S: "RE: Timeout Expired for no apparent reason"
- Reply: Steve S: "RE: Timeout Expired for no apparent reason"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 6 Aug 2004 01:07:05 -0700
How do I set the timeout for transactions? Is it the CommandTimeout property
of ADO or are you talking about something else? How do I know if it's an
implicit transation?
I don't think it will be feasible to break it down into smaller batches.
This might be my last resort.
Thanks,
Sami Samir
"Steve S" wrote:
> Sounds like you're doing this all in a single transaction (implicit, rather
> than explicit), and the whole operation is exceeding the default timeout.
> According to the documentation, the default is allegedly zero, but it's
> possible that something is resetting in. In ODBC, this is done by setting a
> connection attribute, or a statement option, depending on which version
> you're using.
>
> Is it possible to break the recordset down into smaller processing batches ?
>
> Steve S
>
> "Sami Samir" wrote:
>
> > I have a VB 6 Active X DLL that contains a method that opens a recordset and
> > for each row updates a row in another table and then updates the original
> > table. The database is a SQL Server 2000 cluster (SP3). My problem is that
> > when I run this method from an ActiveX script from within a DTS package, I
> > notice that everything is fine and hundreds of rows are updated per minute
> > and then after a certain random ammount of time and rows it gives me this
> > error:
> >
> > [Microsoft][ODBC SQL Server Driver]Timeout expired
> >
> > Each update takes less than a second and should not be the reason for this
> > error. Also, I checked if there were any locks on the table, but there
> > weren't. I use an ODBC connection to connect to the database using MDAC 2.6.
> > Has anybody experienced a similar case who can help me?
> >
> > Thanks and best regards,
> > Sami Samir
- Previous message: Steve S: "RE: Timeout Expired for no apparent reason"
- In reply to: Steve S: "RE: Timeout Expired for no apparent reason"
- Next in thread: Steve S: "RE: Timeout Expired for no apparent reason"
- Reply: Steve S: "RE: Timeout Expired for no apparent reason"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|