Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Update in Tsql Stmt

Posted on 2013-01-07
2
Medium Priority
?
410 Views
Last Modified: 2013-01-07
I have the following Tsql statement , however, since it has a single quote in it, it wont work. How do I go about replacing like what I have below.

update dbo.TABLE
set TITLE = 'E'
where TITLE = 'BA'S OFFICE'

Thanks
0
Comment
Question by:Tech315
2 Comments
 
LVL 15

Accepted Solution

by:
Anuj earned 1260 total points
ID: 38751263
update dbo.TABLE
set TITLE = 'E'
where TITLE = 'BA''S OFFICE'

Open in new window

0
 

Author Closing Comment

by:Tech315
ID: 38751296
Thanks :)
0

Featured Post

 [eBook] Windows Nano Server

Download this FREE eBook and learn all you need to get started with Windows Nano Server, including deployment options, remote management
and troubleshooting tips and tricks

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this article we will learn how to fix  “Cannot install SQL Server 2014 Service Pack 2: Unable to install windows installer msi file” error ?
When trying to connect from SSMS v17.x to a SQL Server Integration Services 2016 instance or previous version, you get the error “Connecting to the Integration Services service on the computer failed with the following error: 'The specified service …
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…

916 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