SQL2000 Alert question - Tricky!
From: Clement Nappoly (cnappoly@hotmail.com)
Date: 05/28/02
- Next message: Dennis Redfield: "Re: Is it possible????"
- Previous message: frankbuzin: "Re: (Beth?) SQL Ping and Live Address File"
- Next in thread: Raks: "Re: SQL2000 Alert question - Tricky!"
- Reply: Raks: "Re: SQL2000 Alert question - Tricky!"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
From: Clement Nappoly <cnappoly@hotmail.com> Date: Tue, 28 May 2002 05:58:30 -0700
Hi SQL Gurus-
I got a trick question (at least I hope) for you all.
We want to be able to track a "Login failed" Alert to the NODE and
the PROGRAM used for SQL server connectivity. We have a lot of people
in our firm trying various tools to connect to SQL server.
The login failed alert has the message_id (18456) mapped to the
error number in sysmessages. The message is "Login failed for user
'%ls'. What we'd like to get is the hostname and the program name
along with this login name when this alert fires. I know we could get
this hostname from either using host_name() built-in function or
querying sysprocesses, provided the login succeeds. Our issue is that
the user SID doesn't even make it to sysprocesses table since the
login fails. I have phrased my question in 2 ways to make sure I am
asking the right thing. Any help would be greatly appreciated.
Option 1:
The pre-defined message for a "Login Failed" alert (Error 18456) is
"Login failed for user '%ls'. I'd like to get the hostname &
program_name "along" with this message. Updating the sysmessages table
for this error number did not help. SysAlerts and Sysmessages JOIN on
"message_id" and "error:. Any ideas?
OR
Option 2: ( this is really what we want. once we know this, we can
customize alerts the way we want)
Can you pass values between an alert and the job it invokes? If yes,how.
Typically we need to be able to pass the value trapped by alerts in
those wierd parameters "%ls, %d, %!hs" etc. Any ideas?
Thanks
CFN
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
- Next message: Dennis Redfield: "Re: Is it possible????"
- Previous message: frankbuzin: "Re: (Beth?) SQL Ping and Live Address File"
- Next in thread: Raks: "Re: SQL2000 Alert question - Tricky!"
- Reply: Raks: "Re: SQL2000 Alert question - Tricky!"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|