Unix Technical Forum

SQL Login audit log

This is a discussion on SQL Login audit log within the SQL Server forums, part of the Microsoft SQL Server category; --> Hi, All I use SQL Server 2000 and Win 2003 Server. I try to create a SQL Server Login ...


Go Back   Unix Technical Forum > Database Server Software > Microsoft SQL Server > SQL Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-29-2008, 09:28 AM
kai
 
Posts: n/a
Default SQL Login audit log

Hi, All
I use SQL Server 2000 and Win 2003 Server. I try to create a SQL Server
Login audit log using Profiler, but cannot find the tools. I looked at the
Windows Event Viewer, it only logs Windows authentications users for SQL
Server not SQL Server users (Mixed mode users).

Please help on creating SQL Server Login log (username,password and time).

Thanks

Kai


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-29-2008, 09:28 AM
Oscar Santiesteban Jr.
 
Posts: n/a
Default Re: SQL Login audit log

Are you trying to log all SUCESSFULL logons and FAILED logons?
You can right-click the server in ENTERPRISE MANAGER and check the options
for each.


"kai" <kailiang@earthlink.net> wrote in message
news:crgDe.1579$6f.1305@newsread3.news.atl.earthli nk.net...
> Hi, All
> I use SQL Server 2000 and Win 2003 Server. I try to create a SQL Server
> Login audit log using Profiler, but cannot find the tools. I looked at the
> Windows Event Viewer, it only logs Windows authentications users for SQL
> Server not SQL Server users (Mixed mode users).
>
> Please help on creating SQL Server Login log (username,password and time).
>
> Thanks
>
> Kai
>
>



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-29-2008, 09:28 AM
kai
 
Posts: n/a
Default Re: SQL Login audit log

Oscar,
Thanks for responding. I selected all, then I relogin, in the event log
viewer, I cannot find new login. Where should I read the log?

Thanks

kai
"Oscar Santiesteban Jr." <oscarsantiesteban@worldnet.att.net> wrote in
message news:JWgDe.14190$5N3.7915@bgtnsc05-news.ops.worldnet.att.net...
> Are you trying to log all SUCESSFULL logons and FAILED logons?
> You can right-click the server in ENTERPRISE MANAGER and check the options
> for each.
>
>
> "kai" <kailiang@earthlink.net> wrote in message
> news:crgDe.1579$6f.1305@newsread3.news.atl.earthli nk.net...
>> Hi, All
>> I use SQL Server 2000 and Win 2003 Server. I try to create a SQL Server
>> Login audit log using Profiler, but cannot find the tools. I looked at
>> the
>> Windows Event Viewer, it only logs Windows authentications users for SQL
>> Server not SQL Server users (Mixed mode users).
>>
>> Please help on creating SQL Server Login log (username,password and
>> time).
>>
>> Thanks
>>
>> Kai
>>
>>

>
>



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-29-2008, 09:28 AM
Oscar Santiesteban Jr.
 
Posts: n/a
Default Re: SQL Login audit log

Kai,

In event viewer, there are 3 logs SYSTEM, Error (I think) and Application
Log. It should be in Application Log. OTherwise, in Enterprise Manager
expand MANAGMENT and look down to find "Current Logs" or "Logs" (you should
have the last 6 logs) top file should be the most current log. Look in that
one. This file is also in c:\program files\microsoft sql server\logs\
directory.

Oscar

"kai" <kailiang@earthlink.net> wrote in message
news:R4hDe.14071$aY6.12092@newsread1.news.atl.eart hlink.net...
> Oscar,
> Thanks for responding. I selected all, then I relogin, in the event log
> viewer, I cannot find new login. Where should I read the log?
>
> Thanks
>
> kai
> "Oscar Santiesteban Jr." <oscarsantiesteban@worldnet.att.net> wrote in
> message news:JWgDe.14190$5N3.7915@bgtnsc05-news.ops.worldnet.att.net...
> > Are you trying to log all SUCESSFULL logons and FAILED logons?
> > You can right-click the server in ENTERPRISE MANAGER and check the

options
> > for each.
> >
> >
> > "kai" <kailiang@earthlink.net> wrote in message
> > news:crgDe.1579$6f.1305@newsread3.news.atl.earthli nk.net...
> >> Hi, All
> >> I use SQL Server 2000 and Win 2003 Server. I try to create a SQL

Server
> >> Login audit log using Profiler, but cannot find the tools. I looked at
> >> the
> >> Windows Event Viewer, it only logs Windows authentications users for

SQL
> >> Server not SQL Server users (Mixed mode users).
> >>
> >> Please help on creating SQL Server Login log (username,password and
> >> time).
> >>
> >> Thanks
> >>
> >> Kai
> >>
> >>

> >
> >

>
>



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-29-2008, 09:29 AM
kai
 
Posts: n/a
Default Re: SQL Login audit log

Oscar,
Thanks, it is in the "Current Log", it contains the user. In Application
log, user shows "N/A"

Kai
"Oscar Santiesteban Jr." <oscarsantiesteban@worldnet.att.net> wrote in
message news:sqiDe.14532$5N3.10185@bgtnsc05-news.ops.worldnet.att.net...
> Kai,
>
> In event viewer, there are 3 logs SYSTEM, Error (I think) and Application
> Log. It should be in Application Log. OTherwise, in Enterprise Manager
> expand MANAGMENT and look down to find "Current Logs" or "Logs" (you
> should
> have the last 6 logs) top file should be the most current log. Look in
> that
> one. This file is also in c:\program files\microsoft sql server\logs\
> directory.
>
> Oscar
>
> "kai" <kailiang@earthlink.net> wrote in message
> news:R4hDe.14071$aY6.12092@newsread1.news.atl.eart hlink.net...
>> Oscar,
>> Thanks for responding. I selected all, then I relogin, in the event log
>> viewer, I cannot find new login. Where should I read the log?
>>
>> Thanks
>>
>> kai
>> "Oscar Santiesteban Jr." <oscarsantiesteban@worldnet.att.net> wrote in
>> message news:JWgDe.14190$5N3.7915@bgtnsc05-news.ops.worldnet.att.net...
>> > Are you trying to log all SUCESSFULL logons and FAILED logons?
>> > You can right-click the server in ENTERPRISE MANAGER and check the

> options
>> > for each.
>> >
>> >
>> > "kai" <kailiang@earthlink.net> wrote in message
>> > news:crgDe.1579$6f.1305@newsread3.news.atl.earthli nk.net...
>> >> Hi, All
>> >> I use SQL Server 2000 and Win 2003 Server. I try to create a SQL

> Server
>> >> Login audit log using Profiler, but cannot find the tools. I looked at
>> >> the
>> >> Windows Event Viewer, it only logs Windows authentications users for

> SQL
>> >> Server not SQL Server users (Mixed mode users).
>> >>
>> >> Please help on creating SQL Server Login log (username,password and
>> >> time).
>> >>
>> >> Thanks
>> >>
>> >> Kai
>> >>
>> >>
>> >
>> >

>>
>>

>
>



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 02-29-2008, 09:29 AM
Erland Sommarskog
 
Posts: n/a
Default Re: SQL Login audit log

kai (kailiang@earthlink.net) writes:
> Thanks, it is in the "Current Log", it contains the user. In Application
> log, user shows "N/A"


Strange. I enabled login audit on my server, and this is what I found in
the Event Viewer for an SQL login:

18454 :
Login succeeded for user 'sommar'. Connection: Non-Trusted.

I'm running Windows XP, but I don't really see that would make a difference.

What I found, though, was that I had to restart the server for the setting
to have effect.


--
Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se

Books Online for SQL Server SP3 at
http://www.microsoft.com/sql/techinf...2000/books.asp
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 02-29-2008, 09:34 AM
byrocat
 
Posts: n/a
Default Re: SQL Login audit log

One thing that the manual says when changing the audit settings for the
database is that you have to shutdown and restart SQLServer in order
for the change to take effect.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 07:05 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com