1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

SQL Select Statement

Discussion in 'C#' started by user612345, Jun 22, 2010.

  1. user612345

    user612345 New Member

    Jun 22, 2010
    Likes Received:
    Trophy Points:
    I'm trying to pass a SQL statement through C# but my SQL statement needs quotes around a table since the name of the table is also a proper SQL command(which I have no control over).

    Looking at MSDN I tried the following two methods but.

    string sqlSELECT = @"select * FROM tableNAME.""SELECT"";

    string sqlSELECT = "select * FROM tableNAME./"SELECT/"";

    The problem is that both of these statements above leave in slashes.

Share This Page