The debug window shows when activating the query at design time.
The SQL.Text is changed at runtime.
Any pointers in fixing this?
Also the reason I want to debug this query is that it seems to be particularly slow. The query statement is a bit complicated but runs at decent speed when executed directly with the MS SQL Query Analyzer.
FYI the query I want to run is:
Code: Select all
SELECT artClave, artMarca, artDescrip, artPrecio, ISNULL((SELECT exiCant FROM vieExist WHERE exiClave=artClave and exiLugar=1),0) AS artExist,
ISNULL((SELECT sum(exiCant) FROM vieExist WHERE exiClave=artClave),0) AS artTotExist
from tblArts where UPPER(artDescrip) LIKE '%lone%' AND UPPER(artDescrip) LIKE '%20%'
AND UPPER(artDescrip) LIKE '%WOLF%'
The ReadOnly property is set to True, all other properties to default.