1
Fork 0

removed SQL that would be changed anyway later, should make it faster

This commit is contained in:
Jake Howard 2015-01-11 17:14:28 +00:00
parent c04f90031b
commit b022fef286

View file

@ -173,7 +173,7 @@ namespace Saviour_Backup_System
DataTable table = new DataTable(); DataTable table = new DataTable();
conn.Open(); conn.Open();
cmd.CommandText = cmd.CommandText =
"SELECT Recordset.Name as Backup_Name, Recordset.Creation_Date, Recordset.Backup_Location, Drive.Name, Drive.Capacity FROM Recordset, Drive"; "SELECT Recordset.Name, Recordset.Creation_Date, Recordset.Backup_Location, Drive.Name, Drive.Capacity FROM Recordset, Drive";
using (SqlCeDataAdapter adapter = new SqlCeDataAdapter(cmd.CommandText, conn)) { using (SqlCeDataAdapter adapter = new SqlCeDataAdapter(cmd.CommandText, conn)) {
adapter.Fill(table); adapter.Fill(table);
conn.Close(); conn.Close();