Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Handling single quotes inside text
Message
General information
Forum:
Microsoft SQL Server
Category:
Other
Miscellaneous
Thread ID:
00486527
Message ID:
00486764
Views:
10
Thanks Bill

>Hi Terry,
>>If a person submits text like the following:
>>
>>"John's Steakhouse" as a company name, how would I handle it before inserting that text into a text or char or varchar type field so as to not confuse SQL Server while still keeping the intent of the end user and their formal companies name?
>
>If you double the single quote you will get the desired result. i.e.
>"John''s Steakhouse"
>
>In our VFP app with a SQL backend, we have standardized on using the [] as quotes and then strtran() the single quote to double them.
>HTH,
Previous
Reply
Map
View

Click here to load this message in the networking platform