I have an sql statement that I'm trying to execute against a sqlite db.
The problem is, with only this one sql statement, the datatable reports 1 row, event though if I look at the reader it has 5 rows in the results view.
SQL:
SELECT
f.host_id,h.hostname,h.computer_name_dns_fully_qualified,
l.username,l.logon_domain
FROM scans s
LEFT JOIN hosts h ON h.scan_id=s.scan_id
LEFT JOIN logged_on_users l ON l.host_id=h.host_id
LEFT JOIN hosts f ON f.computer_name_netbios LIKE l.logon_ser...
This is how it's called:
var dt = new DataTable();
try
{
var com = new SQLiteCommand(_con) { CommandText = sql };
var reader = com.ExecuteReader();
dt.Load(reader);
reader.Close();
}
catch
{
}
return dt;