private DataTable LayDS_Query(string query) { SqlCommand sqlCommand = new SqlCommand(); sqlCommand.CommandText = query; return(Exec_Class.GetData(sqlCommand)); }
private DataTable LayDS_Query(string query) { //string query = @"EXEC dbo.LayDS_MonHoc"; SqlCommand sqlCommand = new SqlCommand(); sqlCommand.CommandText = query; return(Exec_Class.GetData(sqlCommand)); }
private DataTable LayDS_TonGiao() { string query = @"EXEC dbo.LayDS_TonGiao"; SqlCommand sqlCommand = new SqlCommand(); sqlCommand.CommandText = query; return(Exec_Class.GetData(sqlCommand)); }
private DataTable LayDS_LoaiNguoiDung() { string query = @"EXEC dbo.LayDS_LoaiNguoiDung"; SqlCommand sqlCommand = new SqlCommand(); sqlCommand.CommandText = query; return(Exec_Class.GetData(sqlCommand)); }
public DataTable Backup() { string query = @"Backup database QLHocSinhTHPT to disk ='f:\BackUp.bak'"; SqlCommand sqlCommand = new SqlCommand(); sqlCommand.CommandText = query; return(Exec_Class.GetData(sqlCommand)); }
private DataTable LayDS_TimGiaoVien(string value) { string query = @"EXEC dbo.Tim_GiaoVien @value"; SqlCommand sqlCommand = new SqlCommand(); sqlCommand.Parameters.AddWithValue("@value", value); sqlCommand.CommandText = query; return(Exec_Class.GetData(sqlCommand)); }