Solved

single quote

Posted on 2014-10-03
1
127 Views
Last Modified: 2014-10-03
I tried to update this and it does not like single quotes. What should I do?

 UPDATE    mytable SET  custname = 'ST VINCENTS school'
              WHERE     (custname LIKE '%ST VINCENT'S school%')
0
Comment
Question by:VBdotnet2005
1 Comment
 
LVL 65

Accepted Solution

by:
Jim Horn earned 500 total points
Comment Utility
Use a double-quote in place of the single..
UPDATE    mytable 
SET  custname = 'ST VINCENTS school'
WHERE     (custname LIKE '%ST VINCENT''S school%')

Open in new window

0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
C# Application Local DB Connection String 23 57
SQl query 19 12
SQL JOIN 6 31
BULK LOGGED - log full 9 12
Introduction SQL Server Integration Services can read XML files, that’s known by every BI developer.  (If you didn’t, don’t worry, I’m aiming this article at newcomers as well.) But how far can you go?  When does the XML Source component become …
This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Via a live example combined with referencing Books Online, show some of the information that can be extracted from the Catalog Views in SQL Server.

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now