Hopefully this is an easy question, but I am trying to run a query that is returning a fairly large amount of data from an AS400. I am now getting an error "Estimated query processing time 186 exceeds limit 30". It is a SELECT DISTINCT statement. When I remove the "DISTINCT", the query runs fine.
Where do I need to go to set the processing time
Thanks for the information.

ODBC connection question
CarlLS
Lewis Christie
MClift
The command object has a timeout property, defaulting to 30s. This can be extended if the command it likely to take longer to process, e.g. when building an access path. Try myCommand.CommandTimeout=200.
briancamping
HokieTX