?
Solved

sql server user logins

Posted on 2014-04-02
5
Medium Priority
?
432 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 1000 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 1000 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

Enroll in August's Course of the Month

August's CompTIA IT Fundamentals course includes 19 hours of basic computer principle modules and prepares you for the certification exam. It's free for Premium Members, Team Accounts, and Qualified Experts!

Question has a verified solution.

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

This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
This article shows gives you an overview on SQL Server 2016 row level security. You will also get to know the usages of row-level-security and how it works
Via a live example, show how to setup several different housekeeping processes for a SQL Server.
Viewers will learn how to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.
Suggested Courses

777 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