SELECT X_DSTRCT.DISTRNO, X_DSTRCT.DISTRICT_TEXT AS Brick, COUNT(K11_DCTR.PERNO) AS TotalClients
FROM ((((X_DSTRCT INNER JOIN
K21_WARD ON X_DSTRCT.DISTRNO = K21_WARD.DISTRNO) INNER JOIN
K01_CONN ON K01_CONN.WARNO = K21_WARD.WARNO) INNER JOIN
K11_DCTR ON K11_DCTR.PERNO = K01_CONN.PERNO) INNER JOIN
K16_SPEC ON K16_SPEC.PERNO = K01_CONN.PERNO)
WHERE (K16_SPEC.MEDNO = 5) AND (K16_SPEC.RINFO <> 2) AND (K21_WARD.RINFO <> 2) AND (K01_CONN.RINFO <> 2) AND (K11_DCTR.RINFO <> 2) AND
(X_DSTRCT.RINFO <> 2)
GROUP BY X_DSTRCT.DISTRICT_TEXT, X_DSTRCT.DISTRNO
ORDER BY X_DSTRCT.DISTRICT_TEXT
- Код: Выделить всё
cn.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=""d:\DbFolder"";Persist Security Info=False;JET OLEDB:Database Password=cupcdvum;User ID=admin;Extended Properties=""Paradox 5.x"""
k21_ward ~ 20000
k11_dctr ~ 60000
k16_spec ~ 60000
k01_conn ~ 60000
x_dstrct ~ 200
При работе в VB2005 OleDb запрос проходит за 5 минут, суём его же в левую тулзу DB Commander - получаем 15сек!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Плачу! Где найти нормальный провайдер для парадокса?