I am using VFP 8
MSDE is the back end remote data.
I am trying SQL pass through.
This code works but I get 25,000 + names.
thisform.connectionhandle = SQLCONNECT( "DonnaSQL")
thisForm.tempcursor = "ListOfNames"
SQLEXEC( thisform.connectionhandle , ;
"SELECT lname , fname, mname, idnumber ;
FROM PT_INFO;
ORDER BY LNAME+FNAME+MNAME " , ;
thisForm.tempcursor )
I would like to limit the number of records returned to the first 100, but adding the "TOP 100" causes SQLEXEC() to return -1,which is suppose to mean "a connection level error occurs"
SQLEXEC( thisform.connectionhandle , ;
"SELECT TOP 100 lname , fname, mname, idnumber ;
FROM PT_INFO;
ORDER BY LNAME+FNAME+MNAME " , ;
thisForm.tempcursor )
I would appreciate any suggestions. Even a non pass through aproach.
Jim Rumbaugh
MSDE is the back end remote data.
I am trying SQL pass through.
This code works but I get 25,000 + names.
thisform.connectionhandle = SQLCONNECT( "DonnaSQL")
thisForm.tempcursor = "ListOfNames"
SQLEXEC( thisform.connectionhandle , ;
"SELECT lname , fname, mname, idnumber ;
FROM PT_INFO;
ORDER BY LNAME+FNAME+MNAME " , ;
thisForm.tempcursor )
I would like to limit the number of records returned to the first 100, but adding the "TOP 100" causes SQLEXEC() to return -1,which is suppose to mean "a connection level error occurs"
SQLEXEC( thisform.connectionhandle , ;
"SELECT TOP 100 lname , fname, mname, idnumber ;
FROM PT_INFO;
ORDER BY LNAME+FNAME+MNAME " , ;
thisForm.tempcursor )
I would appreciate any suggestions. Even a non pass through aproach.
Jim Rumbaugh