Log in
::
Register
::
Not logged in
Home
Tags
Articles
Editorials
Stairways
Forums
Scripts
Videos
Blogs
QotD
Books
Ask SSC
SQL Jobs
Training
Authors
About us
Contact us
Newsletters
Write for us
Recent Posts
Recent Posts
Popular Topics
Popular Topics
Home
Search
Members
Calendar
Who's On
Home
»
SQL Server 7,2000
»
Administration
»
Id of most recent login?
Id of most recent login?
Rate Topic
Display Mode
Topic Options
Author
Message
blacklabellover2003
blacklabellover2003
Posted Friday, October 26, 2012 5:24 AM
SSC Rookie
Group: General Forum Members
Last Login: Friday, February 22, 2013 10:15 AM
Points: 41,
Visits: 155
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
Post #1377501
Lowell
Lowell
Posted Friday, October 26, 2012 7:28 AM
SSChampion
Group: General Forum Members
Last Login: Today @ 7:34 AM
Points: 11,638,
Visits: 27,717
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
--
There is no spoon, and there's no default ORDER BY in sql server either.
Actually, Common Sense is so rare, it should be considered a Superpower. --my son
Post #1377574
blacklabellover2003
blacklabellover2003
Posted Wednesday, November 07, 2012 6:36 AM
SSC Rookie
Group: General Forum Members
Last Login: Friday, February 22, 2013 10:15 AM
Points: 41,
Visits: 155
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.
Post #1381949
« Prev Topic
|
Next Topic »
Permissions
You
cannot
post new topics.
You
cannot
post topic replies.
You
cannot
post new polls.
You
cannot
post replies to polls.
You
cannot
edit your own topics.
You
cannot
delete your own topics.
You
cannot
edit other topics.
You
cannot
delete other topics.
You
cannot
edit your own posts.
You
cannot
edit other posts.
You
cannot
delete your own posts.
You
cannot
delete other posts.
You
cannot
post events.
You
cannot
edit your own events.
You
cannot
edit other events.
You
cannot
delete your own events.
You
cannot
delete other events.
You
cannot
send private messages.
You
cannot
send emails.
You
may
read topics.
You
cannot
rate topics.
You
cannot
vote within polls.
You
cannot
upload attachments.
You
may
download attachments.
You
cannot
post HTML code.
You
cannot
edit HTML code.
You
cannot
post IFCode.
You
cannot
post JavaScript.
You
cannot
post EmotIcons.
You
cannot
post or upload images.
Copyright © 2002-2013 Simple Talk Publishing. All Rights Reserved.
Privacy Policy.
Terms of Use.
Report Abuse.