Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Macro substitution
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
Database:
Visual FoxPro
Divers
Thread ID:
00984562
Message ID:
00984574
Vues:
10
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform