mahvashm
New Member
سلام دوستان
من میخاستم بدونم که این 2 تا قطعه کد چی کار میکنن (در #C است)؟
من میخاستم بدونم که این 2 تا قطعه کد چی کار میکنن (در #C است)؟
SqlConnection conn = new SqlConnection("Data Source=.;Initial Catalog=C:\\USERS\\AMIN\\DESKTOP\\ERFAN\\PROG\\WINDOWSAPPLICATION4\\BIN\\DEBUG\\USER.MDF;Integrated Security=True");
SqlDataAdapter Adapter = new SqlDataAdapter();
DataTable dt = new DataTable();
SqlCommand cmd1 = new SqlCommand();
cmd1.Connection = conn;
cmd1.CommandText = "SELECT * FROM Student";
conn.Open();
SqlDataReader reader = cmd1.ExecuteReade
-------------------------------------------------------------------------------------------------------------------------------
Adapter.SelectCommand = new SqlCommand();
Adapter.SelectCommand.Connection = conn;
Adapter.SelectCommand.CommandText = "SELECT * FROM us";
DataTable dt = new DataTable();
Adapter.Fill(dt
SqlDataAdapter Adapter = new SqlDataAdapter();
DataTable dt = new DataTable();
SqlCommand cmd1 = new SqlCommand();
cmd1.Connection = conn;
cmd1.CommandText = "SELECT * FROM Student";
conn.Open();
SqlDataReader reader = cmd1.ExecuteReade
-------------------------------------------------------------------------------------------------------------------------------
Adapter.SelectCommand = new SqlCommand();
Adapter.SelectCommand.Connection = conn;
Adapter.SelectCommand.CommandText = "SELECT * FROM us";
DataTable dt = new DataTable();
Adapter.Fill(dt
لطفا به من کمک کنید . خیلی احتیاج دارم .
با تشکر.
با تشکر.