SQL - Delete

Posted on 2012-08-28
Last Modified: 2012-08-28
I need to delete a file and this is what I am trying to do:

from dbo.PARMSET
where PARMSET_ID = 'Kris's TS';

The problem is that this person put a single quote in the name of the report. How do I go about deleteing this entry?
Question by:dude02
    LVL 142

    Assisted Solution

    by:Guy Hengel [angelIII / a3]
    from dbo.PARMSET
    where PARMSET_ID = 'Kris''s TS';
    LVL 65

    Accepted Solution

    Change it to two single-quotes

    delete from dbo.PARMSET where PARMSET_ID = 'Kris''s TS';

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Do You Know the 4 Main Threat Actor Types?

    Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

    There have been several questions about Large Transaction Log Files in SQL Server 2008, and how to get rid of them when disk space has become critical. This article will explain how to disable full recovery and implement simple recovery that carries…
    Occasionally there is a need to clean table columns, especially if you have inherited legacy data. There are obviously many ways to accomplish that, including elaborate UPDATE queries with anywhere from one to numerous REPLACE functions (even within…
    Need more eyes on your posted question? Go ahead and follow the quick steps in this video to learn how to Request Attention to your question. *Log into your Experts Exchange account *Find the question you want to Request Attention for *Go to the e…
    Internet Business Fax to Email Made Easy - With eFax Corporate (, you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

    760 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