the use of "" in

Posted on 2006-05-09
Last Modified: 2010-04-23
I need help with a sql statement.

I need a select like that "Select * from "DBA"."mytable""  , but i dont remember how to use -->"" inside a sql statement

what can i do?
Question by:losoeos
    LVL 11

    Accepted Solution

    Escape quotes inside strings by using an extra quote:

      "Select * from ""DBA"".""mytable"""
    LVL 6

    Assisted Solution

    or use this:-

    "Select * from [DBA].[mytable]
    LVL 6

    Expert Comment

    Sorry Should be:-

    "Select * from [DBA].[mytable]"
    LVL 96

    Assisted Solution

    by:Bob Learned
    To specifically answer the question, you need to add additional quotes:

       "Select * from ""DBA"".""mytable"""

          or use single quotes:

        "Select * from 'DBA'.'mytable'"

          or use brackets as noted above.


    Author Comment

    thanks i gonna try that

    Featured Post

    Highfive Gives IT Their Time Back

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Join & Write a Comment

    This article explains how to create and use a custom WaterMark textbox class.  The custom WaterMark textbox class allows you to set the WaterMark Background Color and WaterMark text at design time.   IMAGE OF WATERMARKS STEPS Create VB …
    It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
    Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
    This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor ( If you're looking for how to monitor bandwidth using netflow or packet s…

    730 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

    20 Experts available now in Live!

    Get 1:1 Help Now