Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
MSDE, SQL Pass thru
Message
De
11/05/2000 03:39:17
 
 
À
10/05/2000 23:06:58
George Simon
GS Data Technologies, LLC
Cincinnati, Ohio, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00368170
Message ID:
00368431
Vues:
18
>Peter,
>
>Try this:
>
>lnVar=10
>? SQLEXEC(lnHandle,[INSERT INTO MyTable (Field1) VALUES (?lnVar)])
>
>
>
>>? SQLEXEC(lnHandle,"INSERT INTO MyTable (Field1) VALUES (10)") works fine, but
>
>>lnVar=10
>>? SQLEXEC(lnHandle,"INSERT INTO MyTable (Field1) VALUES (lnVar)")

George,

That´s it. Works like a charm. And it´s,(No offense to Larry and Erik),a lot less arcane than a bunch of TRANSFORM() statements with +´s and "´s and what not.
I wonder if one can use a similar approach in creating parameterized views on the server?

I am grateful to you all for taking the time to help out.

Peter
Peter Pirker


Whosoever shall not fall by the sword or by famine, shall fall by pestilence, so why bother shaving?

(Woody Allen)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform