Is there any way to extract information on a database such as which user access the database in the last x number of days? User wants to find the unused database in his environment. In order to achieve this, he wants to see if there are any users querying the database in X days. There should be some logging regarding this. In any environment in any organization, this feature can help to identify databases which are not used.