Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Carriage return and ADO
Message
De
07/05/2003 11:05:25
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
07/05/2003 10:50:07
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00785716
Message ID:
00785830
Vues:
13
>Hi,
>I am using ASP as my web application tool and access VFP database. As usual, once I need to insert record using ADO, I may do:
>
>ASP
>
>lcSQl = "INSERT INTO mytable (f1, f2, f3) VALUES (" & _
>request.querystring("F1") & "," & request.querystring("F2") & "," & _
>request.querystring("f3") & ")"
>
>myconn.execute lcSQL
>
>
>
>If one of these 3 fields contain , I will get error msg. Any ideas?
>
>Thank you

John,
Why don't you get a recordset object and add to it. With above way you're sending something like :
insert into mytable (f1,f2,f3) values ("value1","value2","memo with CR
in it")
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform