Hi JV,
joaovtt wrote:
When I execute the following query
"DELETE FROM Cst_Acessorios WHERE (CodInterno_IV_Acessorio IN
('0','N') AND Qtd_Acessorio = 0) OR (CodZFoccus_IV = '0' AND
CodInterno_IV = '0')"
in a SQL Server database a receive the error message "Timeout
Expired".
I already changed the parameters to the OLEDB connection:
- Connect Timeout = 3000
- Connection Lifetime = 600
But I continue receiving the same error message.
If you execute this statement using Query Analyzer or a similar tool, how
long does it take to execute?
How are you executing the statement in VBA? Using the Connection object or
the Command object?
--
Regards,
Jake Marx
MS MVP - Excel
www.longhead.com
[please keep replies in the newsgroup - email address unmonitored]