>>>Hi everybody,
>>>
>>>I have a long select statement and I'm wondering how can I find number of fields returned by it without writing to a real table?
>>>
>>>Also, since I'm getting the result into VFP cursor, I guess I need to limit the number of fields to 254, correct?
>>>
>>>Thanks.
>>
>>You have a long SELECT?
>>Are you using a some kind of macro/execscript?
>>
>>Because if you don't you may check the number of the fields after the cursor is created, if you do you could parse the string between SELECT and FROM and check how many commas are there.
>
>I wanted to find out from the SQL side. I solved the problem, there were only 83 fields, but looked much more than that.
Everything above 25 looks like MORE.
Don't get me wrong, for some reports I have MORE fields than 83 :-)
Because de-normalized cursor is much more easier to handle in report :-)
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.