Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Quoting technique
Message
From
11/03/1998 10:55:55
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Client/server
Title:
Quoting technique
Miscellaneous
Thread ID:
00083892
Message ID:
00083892
Views:
68
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().
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
Next
Reply
Map
View

Click here to load this message in the networking platform