Re: Trigger on Login
From: Allan Mitchell (allan_at_no-spam.sqldts.com)
Date: 08/18/04
- Next message: Allan Mitchell: "Re: Confused"
- Previous message: anonymous_at_discussions.microsoft.com: "Re: Versioning DTS Packages"
- In reply to: anonymous_at_discussions.microsoft.com: "Trigger on Login"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 18 Aug 2004 21:34:09 +0100
You cannot put triggers on system tables.
-- -- Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP) www.SQLDTS.com - The site for all your DTS needs. www.konesans.com - Consultancy from the people who know <anonymous@discussions.microsoft.com> wrote in message news:8ac701c4854e$31fd8ca0$a601280a@phx.gbl... > select distinct spid, login_time, loginame > from master.dbo.sysprocesses > order by login_time desc > > > Per above, it seems that all logins to MS-SQL are recorded > in the [sysprocesses] table in 'master'. You "could" I > suppose put a trigger on this table to look for logins > that match the syntax you are looking for (either NTLM- > type or SQL authentication). > > If the trigger was lightweight enough it shouldn't hurt > anything. What do you think? > > -DMllp/DBA > > > > >-----Original Message----- > >Is there any trigger on login. > > > >We have this new request. on login, thro any application, > we need to pass on > >a sql server message to the application that the password > will expire in so > >x days. (There is a separate table to maintain the > password history). > > > >thanks a lot for the help. (thanks to SOX!) > > > > > > > >. > >
- Next message: Allan Mitchell: "Re: Confused"
- Previous message: anonymous_at_discussions.microsoft.com: "Re: Versioning DTS Packages"
- In reply to: anonymous_at_discussions.microsoft.com: "Trigger on Login"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|