by goosfancito » Sun Feb 27, 2022 8:11 pm
Hola.
Como hago para ver cual fue el cSELECT que genera esta instrucción?
- Code: Select all Expand view RUN
TEXT into cSql
Select
a.idcarpeta AS c1,
a.idusuario AS c2,
a.habilitado AS c3
FROM tbasignado AS a
WHERE a.idcarpeta = ? AND a.habilitado = ?
ENDTEXT
oQry := ::oCnx:QUERY( cSql, { ::nId, 1 } )
Gracias
-
goosfancito
-
- Posts: 1954
- Joined: Fri Oct 07, 2005 7:08 pm
by vilian » Mon Feb 28, 2022 11:10 am
Try it:
? oQry:source
-
vilian
-
- Posts: 977
- Joined: Wed Nov 09, 2005 2:17 am
- Location: Brazil
-
by goosfancito » Mon Feb 28, 2022 11:23 am
Gracias!
y para ver el contenido de FILTER? porque ? ::oQry:source no me muestra el filtro aplicado.
-
goosfancito
-
- Posts: 1954
- Joined: Fri Oct 07, 2005 7:08 pm
by vilian » Mon Feb 28, 2022 11:27 am
cFilter := oQry:cFilter
-
vilian
-
- Posts: 977
- Joined: Wed Nov 09, 2005 2:17 am
- Location: Brazil
-
by nageswaragunupudi » Wed Mar 02, 2022 2:58 am
Como hago para ver cual fue el cSELECT que genera esta instrucción?
- Code: Select all Expand view RUN
oRs := oCn:RowSet( cSql, aParams )
? oRs:cLastSQL
// OR
XBROWSER oRs:aSql // last 10 sql statements executed
Regards
G. N. Rao.
Hyderabad, India
-
nageswaragunupudi
-
- Posts: 10643
- Joined: Sun Nov 19, 2006 5:22 am
- Location: India
-
Return to FiveWin for Harbour/xHarbour
Who is online
Users browsing this forum: Antonio Linares, Silvio.Falconi and 79 guests