January 9, 2013 at 3:30 pm
Please forgive my ignorance. I am more of a BI developer than a DBA. Is there a way to determine when users logged into a specific SQL Server 2008 database within the past month?
January 9, 2013 at 4:17 pm
I guess It should be stored in the SQL Server Logs. but not sure what was the retension period your SQL Instance was set to.
January 9, 2013 at 6:02 pm
imani_technology (1/9/2013)
Please forgive my ignorance. I am more of a BI developer than a DBA. Is there a way to determine when users logged into a specific SQL Server 2008 database within the past month?
I think the best way to track this is to create logon trigger or since this is SQL 2008, you need to enable the CDC under the database level and you can track any DML activities that way.
SueTons.
Regards,
SQLisAwe5oMe.
January 9, 2013 at 6:10 pm
You can do any of the following:
Logon Trigger
Database/Server Audit
That is if the logon you are seeking is a database logon or a server logon. If the logon is within the app and uses a shared logon, you will need to modify the application to store last logon attempt date and time.
Jason...AKA CirqueDeSQLeil
_______________________________________________
I have given a name to my pain...MCM SQL Server, MVP
SQL RNNR
Posting Performance Based Questions - Gail Shaw[/url]
Learn Extended Events
January 10, 2013 at 1:21 am
In management studio right-click on the instance name and go to properties. Click on Security and in the "Login auditing" section select the "Both failed and successful logins" radio button. Click OK.
Joie Andrew
"Since 1982"
January 10, 2013 at 2:33 am
1.Enable the login audit. you choice success or failed.
2.Since your BI expert . Write SSIS package or even TSQL code to read the errorlog and filter only audit records and insert data into table.( you can play around with the data :-))
Then enjoy with required data.
January 10, 2013 at 7:05 am
You can also create extended events to capture all logins.
"The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
- Theodore Roosevelt
Author of:
SQL Server Execution Plans
SQL Server Query Performance Tuning
Viewing 7 posts - 1 through 6 (of 6 total)
You must be logged in to reply to this topic. Login to reply