Quantcast
Channel: WinAudit
Viewing all articles
Browse latest Browse all 103

New Post: SQL insert from CSV

$
0
0
Hi mikeg69

No, I'm afraid that is not possible. Before posting records to the database, a few queries are performed involving autoincrements and computer specific identifiers such as UUID and MAC address. Additionally, WinAudit is a simple utility so generally accepts only data received directly via an OS system call, not read in from an external file.

A partial/possible solution if you are willing to use Access would be to take the DB with you on a USB stick. Run WinAudit at the command line specifying a DNS-less connection string, e.g.

WinAudit.exe /r=g /f=DBQ=E:\Audits.mdb;Driver={Microsoft Access Driver (*.mdb)};UID=admin;

The /r switch specifies the categories of information you want to collect and /f specifies the database's path. The drive letter E in this example would need to be determined at runtime. That way when you go to the next site, the autoincrement fields are always up to date and a given computer will be recognised when you re-visit the site.

oldbury

Viewing all articles
Browse latest Browse all 103

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>