Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Connect to remove database
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Divers
Thread ID:
01494335
Message ID:
01494508
Vues:
60
you might want to issue an sql update and send that to your remote database:

something like the following code would put all the names to 'test' in your remote db. You can add a where clause to filter.
cSQL = "update reemolso (name = 'test')  "
SQLEXEC(lnHandle, cSQL)
I could access database and browse my table using commands below.
>
>No I would like to do a simple task as "replace all OK with .T." in my table.
>
>Please help me.
>
>
>
>lcServer="siteground150.com"
>lcPort= 3306
>lcDatabase= "monitorr_acrisoft"
>lcUser= "monitorr_monitor"
>lcPassword= myPassword
>lcStringConn="Driver={MySQL ODBC 5.1 Driver};Server=&lcServer;Port=lcPort;Option=16384;Stmt=;Database=&lcDatabase;Uid=&lcUser;Pwd=&lcPassword"
>SQLSETPROP(0,"DispLogin",1)
>lnHandle=SQLSTRINGCONNECT(lcStringConn)
>upit="select * from reembolso"
>IF lnHandle > 0
>  rez=SQLEXEC(lnHandle, upit, "ctable1")
>    BROWSE
>    
>SELECT reembolso         &&  fails here
>    replace nome WITH 'test'   &&  fails here
>    
>    
>    
>ELSE
>*error description
>endif
>=SQLDISCONNECT(lnHandle)
>
>
>

If things have the tendency to go your way, do not worry. It won't last. Jules Renard.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform