Skip to content

Check if data exist in table using asp.net c# 3 tier architecure

jaheena jamal

Asked Jul 19, 2011, 8:22 PM EDT1 answer
Share
LinkedInX
Sir,


How can i check if data exists in a table using 3tier architecure in asp.net c#.

1 Answer

Know the answer? Post it. Somebody with the same question will find it here.

  • Jiteendra Sampathirao
    +1
    the only difference is Data Access logic in stores in a class file..
    So there write this..

          comd.CommandText = "SELECT name FROM sqlite_master WHERE name='" + tableName + "'";
          SQDataReader rdr = cmd.ExecuteReader();
          if (rdr.HasRows)
            return true;
          else
            return false;


    hope it help you......
    +1