Re: Command.Execute hangs forever
- From: "Bob Barrows" <reb01501@xxxxxxxxxxxxxxx>
- Date: Tue, 8 Dec 2009 14:50:53 -0500
Rob MacFadyen wrote:
Hey all,
I've got a very odd case. I have a command object that occasionally
will "hang" forever.
Roughly speaking the code looks like:
dim cmd as ADODB.Command
cmd.CommandText = "blah blah"
set cmd.ActiveConnection = cn
cmd.Parameters.Append ... half dozen parameters ...
cmd.Execute ' <--- never ever completes or error's out
What is really odd about this is the doing a SQL trace/profile on the
database server does not show the command being sent to the server.
It is also odd that the particular bit of code is well used on a
daily basis by lots installations, and even many times by the
installation where the problem is occurring.
The windows event log (application, system, security) do not have any
applicable entries, the SQL Server error log is clean.
Is there any setting I can enable to get any sort of debug
information out of ADODB?
Any suggestions on stuff I should be looking at (I ran component
checker on the server and it's fine... mdac 2.8 sp2 on windows server
2003 sp2)?
If you have On Error Resume Next in your code, comment it out so errors
are not masked.
--
HTH,
Bob Barrows
.
- References:
- Command.Execute hangs forever
- From: Rob MacFadyen
- Command.Execute hangs forever
- Prev by Date: Command.Execute hangs forever
- Next by Date: Re: Command.Execute hangs forever
- Previous by thread: Command.Execute hangs forever
- Next by thread: Re: Command.Execute hangs forever
- Index(es):
Relevant Pages
|