On Mon, Jan 16, 2006 at 02:20:23PM -0700, Michael Fuhr wrote: > On Mon, Jan 16, 2006 at 12:17:26PM -0800, sunithab@xxxxxxxxxxxxxx wrote: > > The following query is working when this is used by static cursor. This > > will return all the properties within the distance of 20 miles > [...] > > But When I am trying to build the dynamic sql string to a refcursor it is > > not able to identify the syntax > > Could you post a complete function instead of just excerpts? That Complete error message would be helpful too... -- Jim C. Nasby, Sr. Engineering Consultant jnasby@xxxxxxxxxxxxx Pervasive Software http://pervasive.com work: 512-231-6117 vcard: http://jim.nasby.net/pervasive.vcf cell: 512-569-9461