Hello all,
This is the error:
I'm receiving the timeout error because of the following call:
strWhere is the Where statement. The where statement has multiple statements like this:
Over 3,000 statements like that (NewCustNo = 'xxxx0000' or NewCustNo='xxxx0001' etc), which is why it's timing out.
Is there a way to make this run without timing out?
If I break up the statement into separate peices on the same page will that solve it, or will I have to break it up into seperate peices on separate pages? Or is something else causing it entirly?
Thank you,
Earme
This is the error:
Code:
Microsoft OLE DB Provider for ODBC Drivers (0x80040E31)
[Microsoft][ODBC SQL Server Driver]Timeout expired
Code:
mySQL = "UPDATE CUSTFILE SET Ref = 1 " & strWhere
connection.CommandTimeout = 300 '5 minutes
connection.Execute mySQL
Code:
NewCustNo = 'xxxx00000'
Is there a way to make this run without timing out?
If I break up the statement into separate peices on the same page will that solve it, or will I have to break it up into seperate peices on separate pages? Or is something else causing it entirly?
Thank you,
Earme