Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Quoting technique
Message
From
11/03/1998 11:42:45
 
 
To
11/03/1998 11:07:02
Bob Tracy
Independent Consultant
Driftwood, Texas, United States
General information
Forum:
Visual FoxPro
Category:
Client/server
Miscellaneous
Thread ID:
00083892
Message ID:
00083913
Views:
21
>>Using SQL Server, I am preparing the update line in a string and then using that string to update some fields for the record. I am using the single quote to encapsulate the value. However, sometimes, I can have a single quote in the value. So, I decided to do something like this: ... SET FIELD1='First part'+CHR(39)+'second part'...
>>
>>However, SQL Server does not understand CHR().
>SQL use the form: CHAR(integer_expr).

Thanks, that works perfectly.

Also, thank to the others who helped me in this. I could have used the quote quote technique as well.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Reply
Map
View

Click here to load this message in the networking platform