Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Use variable in Sqlexe function
Message
De
21/09/2010 04:38:07
Yim Ming Sun Derek
Spacious Design Consultant
Hong Kong, Hong Kong
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Use variable in Sqlexe function
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Desktop
Divers
Thread ID:
01482112
Message ID:
01482112
Vues:
124
Hi,
I want to insert some records from VFP to SQL Server 2005,
I run the SQLEXEC to insert the record,
I don't want to hardcode the values, how can I change the values to variables ?
SQLEXEC(m.lnConn, "INSERT INTO CUSMAS(client_no, client_name, client_addr)  VALUES ('C001','Client A','156 ABC Street, HK')")
Please advise.

Thanks.
Derek
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform