Re: Logon triggers



Erland

Using Event Notifications involvs some experience in administriting of
databases so if the OP has one then I agree EN is a better bet

"Erland Sommarskog" <esquel@xxxxxxxxxxxxx> wrote in message
news:Xns9AFEEFE726FF8Yazorman@xxxxxxxxxxxx
Hugo (Hugo@xxxxxxxxxxxxxxxxxxxxxxxxx) writes:
I am searching for the best way to log all logins using sysadmin users.
I want to record the time, username, hostname and application-name.
There are to many users with sysadmin rights and I need some for info
from the system before changing that. I am running SQL 2005 SP2.

I am looking at logon triggers, but I understand that if the trigger
fails (like when my audit table is unavailable) no one (or at least no
sysadmins) will have access to the server. Is this correct? How to
resolve?

I have a hinch that logon triggers may be bypassed when you log over
the DAC, but since all you want to do is auditing, I think event
notifications are a better bet. I cannot really give an example, as I
have not used them myself much.


--
Erland Sommarskog, SQL Server MVP, esquel@xxxxxxxxxxxxx

Links for SQL Server Books Online:
SQL 2008: http://msdn.microsoft.com/en-us/sqlserver/cc514207.aspx
SQL 2005: http://msdn.microsoft.com/en-us/sqlserver/bb895970.aspx
SQL 2000:
http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx



.



Relevant Pages

  • Re: Logon triggers
    ... There are to many users with sysadmin rights and I need some for info ... I am running SQL 2005 SP2. ... I am looking at logon triggers, but I understand that if the trigger ... Links for SQL Server Books Online: ...
    (microsoft.public.sqlserver.security)
  • Re: Access 2007->SQL Server2005 "connection was forcibly closed",G
    ... I moved every table I was able to move to the SQL ... closed connections - but all of these errors are in the version which used ... the SQL Server 2000 and everything worked ... communication between ODBC (OLEDB and Native Client, ...
    (microsoft.public.sqlserver.connect)
  • Re: Unable to Apply SP4 to SQL 2000 Cluster (new Node)
    ... Rebuild the node in the failover cluster. ... Scenario 1" in SQL Server 2000 Books Online. ... This setup process updates to SP4 only the binaries on the new ...
    (microsoft.public.sqlserver.clustering)
  • Re: WSS 3.0 question
    ... I followed the advise given in removing WSS 3.0 etc, ... the server is complaining that the SQL service(?) was tempered with or corrupt. ... I may just instal the SQL server as I was going eventuall use it anyway. ... If WSUS 3.0 is installed, I would suggest you uninstall it and then you install WSS 3.0. ...
    (microsoft.public.windows.server.sbs)
  • Re: SQL Server 2005 Cluster Setup Quiz
    ... I did test and it did not install the client tools. ... http://www.clusterhelp.com - Cluster Training ... Microsoft SQL Server MVP ... Provide a template on how to read SQL Server 2005 setup log files. ...
    (microsoft.public.sqlserver.clustering)