Sir,
How can i check if data exists in a table using 3tier architecure in asp.net c#.
Check if data exist in table using asp.net c# 3 tier architecure
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Jiteendra SampathiraoRank #586 · 4.1K pointsPosted Jul 19, 2011, 8:38 PM EDT
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......