So I'm tasked with looking at this old database server to see if any of the databases are in use so we can shut it down. I have a few databases with unidentified usages, if I can somehow see a log or connection history I could check the IP and see the source of the application that is using it. Any ideas?
|
feedback
|
|
SQL2005 by default only logs failed connections (bad username, etc) and not successful ones. You can use the activity monitor to see any currently active connections, but that's not retro-active. What we usually do is switch the databases over to READ-ONLY/RESTRICTED ACCESS mode (only DBAs can access the database), and see who starts complaining :) | |||
|
feedback
|
|
This will not show you who is querying the database, but this script should show you which databases have been accessed since the last time the server was rebooted:
(SQL 2005+ only) | |||
|
feedback
|
|
This post might get you pointed in the right direction!! | |||
feedback
|