Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Correct Syntax to SQL Server thru ODBC from VFP
Message
 
 
To
03/08/2004 09:46:00
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00929617
Message ID:
00930333
Views:
19
> I have a question about the double single quotes. Won't the program think that is a break and put the second part of the string into the next field?

Which program, VFP or T-SQL? In VFP you can use double quotes or square brackets as a string literal delimiter to avoid such problem. T-SQL treats double single quote as a single one within a string literal.

>
>On the text merge code, I put the code you gave below into my program, and my veriable lcSqlStr remained a empty string after moving through that code. What is the 'Pretext 7' do? Should I take it out?

What VFP version you run it in? I'm not sure it'll work in VFP6. For 'Pretext' description see help file for TEXT..ENDTEXT command. Also, the code I provided is just an example and may not work for you 'as is'. You may have to adjust it to your requirements.
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform