S
Saurabh Prabhu
Hi there,
I am using a SQL reader to read data from a table. Here is how I use it.
SqlDataReader lobj_Table = SqlHelper.ExecuteReader(ConnectionObject,CommandType.Text,lstr_SQL);
Now I need to confirm a few points here. If I am reading the data from a single table then the sqlreader works fine. But one of my collegues mentioned that sql reader does not always work if my sql query consists of one or more joins. Is it true? It is important that I use SQL reader and not a datatable because of memory issues etc.
Please let me know what is the best way to read data from multiple tables using a sql reader.
Thanks and Regards,
Saurabh
I am using a SQL reader to read data from a table. Here is how I use it.
SqlDataReader lobj_Table = SqlHelper.ExecuteReader(ConnectionObject,CommandType.Text,lstr_SQL);
Now I need to confirm a few points here. If I am reading the data from a single table then the sqlreader works fine. But one of my collegues mentioned that sql reader does not always work if my sql query consists of one or more joins. Is it true? It is important that I use SQL reader and not a datatable because of memory issues etc.
Please let me know what is the best way to read data from multiple tables using a sql reader.
Thanks and Regards,
Saurabh