Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Correct Syntax to SQL Server thru ODBC from VFP
Message
From
02/08/2004 10:41:35
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00929617
Message ID:
00930120
Views:
16
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,"'","''"),",","','") + "')"
Previous
Reply
Map
View

Click here to load this message in the networking platform