Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Quote and Pass-trough
Message
 
 
To
02/12/2002 14:47:39
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00728741
Message ID:
00728742
Views:
22
This message has been marked as the solution to the initial question of the thread.
Double single quotes.
=SQLEXEC(hconnect, ;
  [Insert into Table (id) values ('] + CHRTRAN(myid, ['], ['']) + [')] )
>Hello,
>
>How can I send a field that contains quote to a SQL server using an SQL pass through ?
>
>=SQLEXEC(hconnect,"Insert into Table (id) values ('" + myid + "')")
>
>myid has single quote included for example.
>
>Thanks
>
>Xavier
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform