I'm experimenting with the report generator and I want to use SQL queries to add machine data to the report. Right now i found out that only the General (Database.db) and AuditTrail are accessible through the report generator.
I was wondering if it is possible to add a new table to the General Database so that my custom machinedata-table is printable using the report generator.
To connect to the database through script I'm using the following:
Code: Select all
using System.Data.SQLite;
/*
Other code......
*/
using (SQLiteConnection db = new SQLiteConnection(dbPath))
{
db.Open();
String tableCommand = "CREATE TABLE IF NOT " +
"EXISTS MyTable (Primary_Key INTEGER PRIMARY KEY, " +
"Text_Entry NVARCHAR(255) NULL)";
SQLiteCommand createTable = new SQLiteCommand(tableCommand, db);
createTable.ExecuteReader();
}
Code: Select all
SQL(General; select * from MyTable)
Kind regards and thanks in advance,
Pepijn Hogervorst
P.S. I'm using a X2pro4 terminal