Is it possible to configure a SQL Server database to write audit information for logons (success and failure) to a database table that can be queried?
The requirement is to be able to generate a monthly report that captures:
Date / Time
Source Hostname (i.e. the device where the connection is coming from)
Source Username (username on the device the connection is coming from)
Ideally we could capture that data, have it in a table somewhere and query it monthly for the report.
SQL Server Audit doesn't appear to let me capture that in a table - it seems to be a file, security log or application log and my Google Fu has not been strong enough to find anything so far to meet the requirement.
Short of a login trigger to interrogate the session and record that connection attempt in a table that can be queried later, are there any other options available?