Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Carriage return and ADO
Message
From
07/05/2003 11:05:25
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
07/05/2003 10:50:07
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00785716
Message ID:
00785830
Views:
14
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform