How to check whether query retuns some rows or not
Hello All Friends,
I am raj from New Delhi,India.
I am Developing a WebSite on ASP.Net Platform.Now I am executing a sqlQuery
"Select uid from tablename where uid='" + txtuid.Text + "'"
I wanna check whether this Query returns result or returns blank.
I can do this with inserting records in DataTable and then counting the rows in DataTable.
But is there any other way of doing this without DataTable or DataSet.
Thanks........raj
rajkumar
__________________
rajkumar
|