ersachinjain
Programmer
Hi
My code connects to the mysql database and then retrieves the values from the database. I want to know the number of rows that are fetched from the database. Any one can help.
my code is :
C_mysqlconnection = new MySqlConnection(str_connectionstring);
C_mysqlconnection.Open();
String str_selectquery = "select * from " + str_tablename;
ArrayList arraylist_records;
MySqlCommand mysqlcommand = new MySqlCommand(str_selectquery, C_mysqlconnection);
MySqlDataReader mysqlreader = mysqlcommand.ExecuteReader();
My code connects to the mysql database and then retrieves the values from the database. I want to know the number of rows that are fetched from the database. Any one can help.
my code is :
C_mysqlconnection = new MySqlConnection(str_connectionstring);
C_mysqlconnection.Open();
String str_selectquery = "select * from " + str_tablename;
ArrayList arraylist_records;
MySqlCommand mysqlcommand = new MySqlCommand(str_selectquery, C_mysqlconnection);
MySqlDataReader mysqlreader = mysqlcommand.ExecuteReader();