﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / Administering / SQL Server 2005  / restrict windows authentication login / 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 23:04:18 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: restrict windows authentication login</title><link>http://www.sqlservercentral.com/Forums/Topic829682-146-1.aspx</link><description>Must be: CREATE TRIGGER connection_limit_triggerON ALL SERVER FOR DDL_LOGIN_EVENTS I have gotten an error with "LOGON" clause...However msdn tell us: CREATE TRIGGER XYZON ALL SERVER {FOR|AFTER} LOGON ...</description><pubDate>Wed, 09 Dec 2009 12:49:58 GMT</pubDate><dc:creator>pbedoya</dc:creator></item><item><title>RE: restrict windows authentication login</title><link>http://www.sqlservercentral.com/Forums/Topic829682-146-1.aspx</link><description>Hi,thank's for your reply here u can find my trigger code.CREATE TRIGGER connection_limit_triggerON ALL SERVER FOR LOGONASBEGINIF EXISTS(SELECT * FROM sys.server_principals AS SP WHERE [name] = SUSER_SNAME() AND type_desc IN ('Windows_Login', 'Windows_Group'))     BEGIN         RAISERROR('Windows LOGIN''s are NOT allowed ON this SERVER', 16, 1)     ENDEND</description><pubDate>Tue, 08 Dec 2009 21:10:39 GMT</pubDate><dc:creator>DBA_1276</dc:creator></item><item><title>RE: restrict windows authentication login</title><link>http://www.sqlservercentral.com/Forums/Topic829682-146-1.aspx</link><description>You want to keep in mind how SQL agent logs in..  so you might not want to absolutely deny all windows logins but deny all BUT a limited list..CEWII</description><pubDate>Tue, 08 Dec 2009 09:07:51 GMT</pubDate><dc:creator>Elliott Whitlow</dc:creator></item><item><title>RE: restrict windows authentication login</title><link>http://www.sqlservercentral.com/Forums/Topic829682-146-1.aspx</link><description>If you post the trigger code, we can help you debug it.</description><pubDate>Tue, 08 Dec 2009 08:50:28 GMT</pubDate><dc:creator>Steve Jones - SSC Editor</dc:creator></item><item><title>RE: restrict windows authentication login</title><link>http://www.sqlservercentral.com/Forums/Topic829682-146-1.aspx</link><description>Here's a [url=http://technet.microsoft.com/en-us/library/bb326598.aspx]technet article[/url] about logon triggers.</description><pubDate>Tue, 08 Dec 2009 07:54:10 GMT</pubDate><dc:creator>  Jack Corbett</dc:creator></item><item><title>RE: restrict windows authentication login</title><link>http://www.sqlservercentral.com/Forums/Topic829682-146-1.aspx</link><description>HI,thank's for your repaly,I am trying to create logon trigger form my sysadmin login but it gives error like Msg 1084, Level 15, State 1, Procedure Tr_ServerLogon, Line 2'LOGON' is an invalid event type.</description><pubDate>Tue, 08 Dec 2009 02:09:29 GMT</pubDate><dc:creator>DBA_1276</dc:creator></item><item><title>RE: restrict windows authentication login</title><link>http://www.sqlservercentral.com/Forums/Topic829682-146-1.aspx</link><description>You can't disable the ability to have Windows Logins.  You can only not create Logins linked to Windows accounts.  You could also write a Logon Trigger that checks the login type and denies access to Windows Logins.  It would contain information sort of like this:[code="sql"]IF EXISTS(SELECT * FROM sys.server_principals AS SP WHERE [name] = SUSER_SNAME() AND type_desc IN ('Windows_Login', 'Windows_Group'))    BEGIN        RAISERROR('Windows LOGIN''s are NOT allowed ON this SERVER', 16, 1)    END [/code]</description><pubDate>Mon, 07 Dec 2009 07:43:14 GMT</pubDate><dc:creator>  Jack Corbett</dc:creator></item><item><title>RE: restrict windows authentication login</title><link>http://www.sqlservercentral.com/Forums/Topic829682-146-1.aspx</link><description>Thank's for your replay.</description><pubDate>Mon, 07 Dec 2009 02:52:23 GMT</pubDate><dc:creator>DBA_1276</dc:creator></item><item><title>RE: restrict windows authentication login</title><link>http://www.sqlservercentral.com/Forums/Topic829682-146-1.aspx</link><description>you can remove the built\Administrator role, though before deleting delete the users in each database related to the above server login and transfer the ownership to new users; also delete all windows authenticated server login. </description><pubDate>Mon, 07 Dec 2009 02:26:18 GMT</pubDate><dc:creator>Sqlfrenzy</dc:creator></item><item><title>restrict windows authentication login</title><link>http://www.sqlservercentral.com/Forums/Topic829682-146-1.aspx</link><description>Hi all,   In sql server 2005 how can I restrict windows authentication login, allow only sql server logins.Pls help me.</description><pubDate>Mon, 07 Dec 2009 00:52:29 GMT</pubDate><dc:creator>DBA_1276</dc:creator></item></channel></rss>