﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / SQL Server 2008 / SQL Server 2008 Administration  / Logon triggers - using EVENTDATA() versus system functions (SUSER_SNAME() etc.) / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Thu, 23 May 2013 04:12:32 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Logon triggers - using EVENTDATA() versus system functions (SUSER_SNAME() etc.)</title><link>http://www.sqlservercentral.com/Forums/Topic930906-1550-1.aspx</link><description>If it's just Logon Inforamtion you wish to capture then go for the System Functions.I don't see the point of EVENTDATA() for your requirement. The System Functions will also perform better because the information is extracted from the SQL Srver's System Tables.</description><pubDate>Fri, 04 Jun 2010 00:02:39 GMT</pubDate><dc:creator>TriggerMe</dc:creator></item><item><title>Logon triggers - using EVENTDATA() versus system functions (SUSER_SNAME() etc.)</title><link>http://www.sqlservercentral.com/Forums/Topic930906-1550-1.aspx</link><description>Which is the preferred way of writing a logon trigger for basic user authentication?Using the EVENTDATA() function and extracting the connection information from the XML or using system functions like this?[code="sql"]select HOST_NAME(),APP_NAME(),SUSER_SNAME(),USER_NAME(),SCHEMA_NAME()[/code]</description><pubDate>Tue, 01 Jun 2010 11:56:01 GMT</pubDate><dc:creator>Marios Philippopoulos</dc:creator></item></channel></rss>