Solved

sql server user logins

Posted on 2014-04-02
5
421 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:BobCSD
  • 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 1

Author Comment

by:BobCSD
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 1

Author Comment

by:BobCSD
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 1

Author Closing Comment

by:BobCSD
ID: 39975924
thanks!
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Occasionally there is a need to clean table columns, especially if you have inherited legacy data. There are obviously many ways to accomplish that, including elaborate UPDATE queries with anywhere from one to numerous REPLACE functions (even within…
JSON is being used more and more, besides XML, and you surely wanted to parse the data out into SQL instead of doing it in some Javascript. The below function in SQL Server can do the job for you, returning a quick table with the parsed data.
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.

758 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now