Sir,
How can i check if data exists in a table using 3tier architecure in asp.net c#.
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Jiteendra SampathiraoPosted Jul 20, 2011, 12:38 AM
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......