Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Very Long SQL
Message
 
To
08/02/2007 07:44:26
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Environment versions
Visual FoxPro:
VFP 6 SP5
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01193541
Message ID:
01193743
Views:
8
>hi all,
>
>a client of mine wants to have a system of reporting wherein he selects the columns from a list of about 30 fields which are from about 10 different tables. and, only the selected fields should appear in the report print out.
>
>now, based on his selection of fields certain joins etc will have to be done to extract the desired data from the respective tables.
>
>my problem is that in the worst case when he selects all the fields, my SQL statement exceeds the limit of 254 characters (which i am storing in a character variable) how can i store more than 254 caharacters in a memory variable which i then would like to execute through macro expansion ?
>
>alternately, if somene has a better & more viable solution, can you please share it with me ?
>
>with sincere thanks in advance.


Build your statement in an array, then concatenate those into a string and execute with macro expansion.
John Harvey
Shelbynet.com

"I'm addicted to placebos. I could quit, but it wouldn't matter." Stephen Wright
Previous
Reply
Map
View

Click here to load this message in the networking platform