October 26, 2012 at 5:24 am
Hi all,
I have an orphaned .mdf + .ldf fileset on our production box, I know how to attach them.
But I also need to find out who the last user was. Any idea how to do this?
Cheers,
BLL
October 26, 2012 at 7:28 am
blacklabellover2003 (10/26/2012)
Hi all,I have an orphaned .mdf + .ldf fileset on our production box, I know how to attach them.
But I also need to find out who the last user was. Any idea how to do this?
Cheers,
BLL
nope, sorry, no place to get that data unless you have some sort of auditing or custom trace running.
only current users are available, which you can see via sp_who/sp_who2 for example.
past users are not stored anywhere.
after you attach the database, you could find the last user CREATED in the database, but that certainly does not imply that was the last user to access the database before it was detached.
Lowell
November 7, 2012 at 6:36 am
Lowell (10/26/2012)
blacklabellover2003 (10/26/2012)
Hi all,I have an orphaned .mdf + .ldf fileset on our production box, I know how to attach them.
But I also need to find out who the last user was. Any idea how to do this?
Cheers,
BLL
nope, sorry, no place to get that data unless you have some sort of auditing or custom trace running.
only current users are available, which you can see via sp_who/sp_who2 for example.
past users are not stored anywhere.
after you attach the database, you could find the last user CREATED in the database, but that certainly does not imply that was the last user to access the database before it was detached.
Appreciate that, thanks. In this case I've thrown the prob back to the apps team, but will remember your advice as this will recur, no doubt.
Viewing 3 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply