Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Insert into SQL with a '
Message
From
22/08/2019 10:14:36
Joe Kaufman
Bell Laboratories Inc.
Wisconsin, United States
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
01670208
Message ID:
01670244
Views:
75
As the others have indicated, parameters are the way to go.

In a pinch, though, you can simply double-up the single quotes to tell SQL Server to accept it as a single quote. See this thread for more:

https://stackoverflow.com/questions/1912095/how-to-insert-a-value-that-contains-an-apostrophe-single-quote

Thanks,
JoeK
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform