Hi
The following SQL results in a quick result;
SELECT WRHUB_PROD_V_SRW_MID_PARCEL_SP.SERVICE_POINT_DESC
FROM WRHUB_PROD_V_SRW_MID_PARCEL_SP
WHERE WRHUB_PROD_V_SRW_MID_PARCEL_SP.SERVICE_POINT_DESC IN ("MC.4033", "MC.678");
However, if I use a subquery as follows;
SELECT WRHUB_PROD_V_SRW_MID_PARCEL_SP.SERVICE_POINT_DESC
FROM WRHUB_PROD_V_SRW_MID_PARCEL_SP
WHERE WRHUB_PROD_V_SRW_MID_PARCEL_SP.SERVICE_POINT_DESC IN
(SELECT meter FROM tblMeter);
It seems to time out giving me an ODBC call failure message.
The first table is actually a linked view into a SQLSERVER database and is very large.
Why does ODBC seem to time out when using the subquery?
Cheers
The following SQL results in a quick result;
SELECT WRHUB_PROD_V_SRW_MID_PARCEL_SP.SERVICE_POINT_DESC
FROM WRHUB_PROD_V_SRW_MID_PARCEL_SP
WHERE WRHUB_PROD_V_SRW_MID_PARCEL_SP.SERVICE_POINT_DESC IN ("MC.4033", "MC.678");
However, if I use a subquery as follows;
SELECT WRHUB_PROD_V_SRW_MID_PARCEL_SP.SERVICE_POINT_DESC
FROM WRHUB_PROD_V_SRW_MID_PARCEL_SP
WHERE WRHUB_PROD_V_SRW_MID_PARCEL_SP.SERVICE_POINT_DESC IN
(SELECT meter FROM tblMeter);
It seems to time out giving me an ODBC call failure message.
The first table is actually a linked view into a SQLSERVER database and is very large.
Why does ODBC seem to time out when using the subquery?
Cheers