Solved

sql server user logins

Posted on 2014-04-02
5
429 Views
Last Modified: 2014-04-03
I created a sql server 2008 r2 database for a specific user and assigned them as dbowner. Is there  a way to tell if this user has been logging in and using this database?

thanks!
0
Comment
Question by:Starr Duskk
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
5 Comments
 
LVL 9

Accepted Solution

by:
Sreedhar Vengala earned 250 total points
ID: 39973783
In MSSQL server you can run the following command...

exec sp_who2

Open in new window


This will give you a lot of information including who is logged in, application name, current command, so on and so forth.
0
 
LVL 2

Author Comment

by:Starr Duskk
ID: 39973804
That shows only events since 3/23.

How do I see event as far back as 3/20? If it doesn't show that date is it just not there? That's when I created the database. And I logged in with the account that date, but I don't see any record of it.

thanks!
0
 
LVL 6

Assisted Solution

by:Patrick Tallarico
Patrick Tallarico earned 250 total points
ID: 39974047
Check out the following article:
http://www.ultimatewindowssecurity.com/sqlserver/Default.aspx

Have you checked the Windows Event Viewer?  The security collection may have a listing of the authentication to the sql server.
0
 
LVL 2

Author Comment

by:Starr Duskk
ID: 39975919
The windows event viewer doesn't show the sql server logins in the security collection.

I'll check out the other link. thanks all!
0
 
LVL 2

Author Closing Comment

by:Starr Duskk
ID: 39975924
thanks!
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Slowly Changing Dimension Transformation component in data task flow is very useful for us to manage and control how data changes in SSIS.
In this article we will learn how to fix  “Cannot install SQL Server 2014 Service Pack 2: Unable to install windows installer msi file” error ?
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function
Viewers will learn how to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.

697 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question