select @@SERVERNAME ServerName
, db_name() DbName
, DATABASEPROPERTYEX(DB_NAME(),'Edition') Edition
, DATABASEPROPERTYEX(DB_NAME(),'MaxSizeInBytes') MaxSizeInBytes
, DATABASEPROPERTYEX(DB_NAME(),'Updateability') Updateability
, DATABASEPROPERTYEX(DB_NAME(),'ServiceObjective') ServiceObjective
, A1.Name
, A1.create_date
, A1.modify_date
, A2.audit_action_name
from sys.database_audit_specifications a1
JOIN sys.database_audit_specification_details A2 on A1.database_specification_id = a2.database_specification_id
, db_name() DbName
, DATABASEPROPERTYEX(DB_NAME(),'Edition') Edition
, DATABASEPROPERTYEX(DB_NAME(),'MaxSizeInBytes') MaxSizeInBytes
, DATABASEPROPERTYEX(DB_NAME(),'Updateability') Updateability
, DATABASEPROPERTYEX(DB_NAME(),'ServiceObjective') ServiceObjective
, A1.Name
, A1.create_date
, A1.modify_date
, A2.audit_action_name
from sys.database_audit_specifications a1
JOIN sys.database_audit_specification_details A2 on A1.database_specification_id = a2.database_specification_id
Comments
Post a Comment