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?
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.
help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!