Re: Authentication options with SS2005

SP2 should be installed on the system
This trigger prevents from 'AuditLogin' login having more that one
Modufy this script for your needs

create login AuditLogin with password = ?AuditLoginPswd?
/*Create a very simple login trigger */
create trigger AuditLogin_Demo
/* server means instance level*/
on all server
with execute as self
/* We specify the logon event at this stage
? If there are more than one connections,
? Issue a rollback*/
for logon
as begin
(SELECT COUNT(*) FROM sys.dm_exec_sessions
WHERE is_user_process = 1 AND
original_login_name = ?AuditLogin?) > 1

"Jason" <Jason@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message

we have an issue were we need an instance of ss to lockout and account
more logins than is set by our domain policy.

as far as the hacker scenario, that could happen now using windows

"Charles Wang[MSFT]" wrote:

Hi Jason,
SQL Server does not provide such function. You may give Microsoft
via so that your suggestion will be
by the product team and you may get their responses via email.

Personally I do not think that this is a secure way since your valid
will face the risk of locking if some hackers just want to make your
locked. If it is required for you, you may consider implementing this
function in your application level by yourself. I think that your meaning
of locking logins here is that you temporarily DENY all the permissions
the login.

If you have any other questions or concerns, please feel free to let me
know. Have a good day!

Best regards,
Charles Wang
Microsoft Online Community Support
When responding to posts, please "Reply to Group" via
your newsreader so that others may learn and benefit
from this issue.
This posting is provided "AS IS" with no warranties, and confers no


Relevant Pages

  • Re: Too many sa failed logins
    ... > The event log is showing a ton of failed sa logins. ... I don't have a real answer to your question, but exposing a database server ... The best option for monitoring attempted connections would be at the ... OS or network level - if a client doesn't authenticate with MSSQL, ...
  • Re: Trigger on Login
    ... Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP) ... it seems that all logins to MS-SQL are recorded ... > If the trigger was lightweight enough it shouldn't hurt ... > password history). ...
  • Re: ftp login retry lockout time
    ... | logins from a specific ip and then lock out that ip for a specified time ... Log the connections, write a script which you'll run periodically to ...
  • Re: Monitoring Connections
    ... CGI app, then I do see another row appear in the sp_who2 results. ... 'connections' field incrementing. ... >> sp_monitor show the 'number of logins or attempted logins'. ...
  • Trigger on Login
    ... it seems that all logins to MS-SQL are recorded ... If the trigger was lightweight enough it shouldn't hurt ... >a sql server message to the application that the password ... password history). ...