Hello is there a way to use two sqldatareader at same time ?
i was coding a program
and i got error because i use 2 readers at same
Sample of code
Declare those DataReader in the block public partial class Form1 : Form
Example:
namespace GoodFood_1_
{
public partial class Autentificare_client : Form
{
SqlConnection con = new SqlConnection(@"Data Source=(LocalDB)\v11.0;AttachDbFilename=C:\Users\edi_b\Documents\visual studio 2013\Projects\GoodFood(1)\GoodFood(1)\GOOD_FOOD.mdf;
Integrated Security=True;MultipleActiveResultSets=True");
SqlConnection con2 = new SqlConnection(@"Data Source=(LocalDB)\v11.0;AttachDbFilename=c:\users\edi_b\documents\visual studio 2013\Projects\GoodFood(1)\GoodFood(1)\GOOD_FOOD.mdf;
Integrated Security=True;MultipleActiveResultSets=True");
SqlDataReader dr;
SqlDataReader cc;
public Autentificare_client()
{
InitializeComponent();
}