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:
00984569
Vues:
22
This message has been marked as a message which has helped to the initial question of the thread.
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform