Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Correct Syntax to SQL Server thru ODBC from VFP
Message
De
02/08/2004 10:41:35
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00929617
Message ID:
00930120
Vues:
15
Hi, Charles
If you look at my first post, I believe that I said this was already done. When I look at the string from VFP's debug window, I looks like this.
'"BAR.000000",00,"BAR"'

Thanks.
>Hi,
>
>I think you need to pass your values comma delimited with quotes around each value.
>SQL also wants a double single quote around strings with quotes in them.
>
>Try using STRTRAN to add the double single quote and quotes between commas.
>
>example
>
>stringtxt = "dave,o'brien,23,bar.000"
>insertline = "insert into tmptable values('" + STRTRAN(STRTRAN(stringtxt,"'","''"),",","','") + "')"
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform