Solved

Update in Tsql Stmt

Posted on 2013-01-07
2
402 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 315 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

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

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

Suggested Solutions

Use this article to create a batch file to backup a Microsoft SQL Server database to a Windows folder.  The folder can be on the local hard drive or on a network share.  This batch file will query the SQL server to get the current date & time and wi…
Ever wondered why sometimes your SQL Server is slow or unresponsive with connections spiking up but by the time you go in, all is well? The following article will show you how to install and configure a SQL job that will send you email alerts includ…
Via a live example, show how to backup a database, simulate a failure backup the tail of the database transaction log and perform the restore.
Via a live example, show how to shrink a transaction log file down to a reasonable size.

932 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

9 Experts available now in Live!

Get 1:1 Help Now