SteveMacPSU
Programmer
Hi all,
I'm trying to pull some data from a SQL db that we have to run a report of active clients. This is what I'm using:
LOCAL lnHandle
lnHandle = SQLConnect("xxx", "XX", "XXXXXX")
IF lnHandle > -1
#1. SQLExec(lnHandle,"SELECT * FROM ENC","Results")
#2. SQLExec(lnHandle,"SELECT * FROM ENC;
where ISNULL(enddat)","Results")
SQLDisconnect(lnHandle)
ENDIF
#1 works fine, but all I want is the records that do not have an enddat. What am I doing wrong?
Thanks in advance,
Steve
I'm trying to pull some data from a SQL db that we have to run a report of active clients. This is what I'm using:
LOCAL lnHandle
lnHandle = SQLConnect("xxx", "XX", "XXXXXX")
IF lnHandle > -1
#1. SQLExec(lnHandle,"SELECT * FROM ENC","Results")
#2. SQLExec(lnHandle,"SELECT * FROM ENC;
where ISNULL(enddat)","Results")
SQLDisconnect(lnHandle)
ENDIF
#1 works fine, but all I want is the records that do not have an enddat. What am I doing wrong?
Thanks in advance,
Steve