
Query takes 0 seconds in Query Analyzer, times out in VB
I have an update statement that gives me a time out error in VB, but not
when I run it in Query Analyzer. I put in code to write the sql statement
to a text file right before the execute line, so I have the exact query. I
open Query Analyzer, log in using the same credentials the VB app is using,
set context to the same database the VB app is using, and run the query. It
takes 0 seconds to run in Query Analyzer, as I would expect.
I'm using that same connection object for several more update statements.
If I comment out the one in question, they all run fine. If I uncomment it,
it times out.
I've no clue.