Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Macro substitution
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00984562
Message ID:
00984574
Views:
12
Thank kurt,

that give me a idea.


=EXECSCRIPT("CREATE SQL VIEW COMPAN REMOTE CONNECT 'AmlineBobConnection' AS SELECT * FROM " + cFolderData + ' ' + cFolderData )

bernhart

>Bernhart,
>
>Store the sqlstatement to a string, I prefer to use the TEXTMERGE command for sqlcommands because it is easier to maintain, then use the EVAL() function to execute the text string.
>
>
>
>cFolderData = "MYCUSTOMER"
>
>TEXT TO lcSqlString TEXTMERGE NOSHOW
>CREATE SQL VIEW COMPAN ;
>  REMOTE CONNECTION "AmlineBobConnection"  AS SELECT * FROM <<cFolderData>>
>ENDTEXT
>
>EVALUATE(lcSqlString)
>
>
>Kurt
>>Hi all,
>>
>>
>>
>>
>>cFolderData = "MYCUSTOMER"
>>CREATE SQL VIEW "COMPAN" ;
>>  REMOTE CONNECT "AmlineBobConnection" AS SELECT * FROM ( cFolderData cFolderData  )
>>
>>
>>I HAVEC a error...
>>What is the good syntax ?
>>
>>Thank in advance for the answer...
>>
>>
>>bernhart
Previous
Reply
Map
View

Click here to load this message in the networking platform