Groups | Blog | Home
all groups > sql server notification services > october 2005 >

sql server notification services : SQLServer2000 SP4 & NS 2.0 SP1 & Windows 2000 SP4 & Windows Authentication problem


Eagle
10/21/2005 3:07:13 AM
Hello!

I use subject.

Windows 2000 machine is domain controller. There are installed MSSQL
and NS.

MSSQL service and NS service Log on As different DOMAIN\USERNAME
accounts ('DOMAIN\sql_server' and 'DOMAIN\notification_services').
These accounts are members of 'Administrators' group.

'DOMAIN\notification_services' account was added to database logins and
it has all needed grants.

If event was fired then error appear in EventLog:

<NotificationServicesEvent>
<Description>
An extended stored procedure did not connect with the data source
object (DSO) using the supplied connection string.
</Description>
....

<SqlServerError>
Source: .Net SqlClient Data Provider
Number: 62002
State: 0
Class: 19
Server:
Message: Login failed for user 'NT AUTHORITY\SYSTEM'.
Error Parameters:
Row # = 1
XP = xp_NSEndNotifications

Procedure:
Line Number: 0
</SqlServerError>

If i use Windows 2003 Server instead of Windows 2000 then this problem
doesn't exist!
How i can fix this problem on Win2000?
Thanks!
Joe Webb
10/25/2005 10:55:54 AM

Hi Eagle -

I hope you don't mind some general comments about the installation
while troubleshooting this.

[quoted text, click to view]
Generally not a good idea to install a production SQL Server instance
on a Domain Controller. Too much load for one machine.

[quoted text, click to view]
Good plan.

[quoted text, click to view]
Generally considered a really bad idea to have the notification
services login a member of the administrators group. It just doesn't
need that level of permissions. Consider making it a low-privileged
account for a more secure installation.

[quoted text, click to view]
What rights has it been granted? Is it a member of the NSRunService
database role?

[quoted text, click to view]
Are these two different installations in a test environment? Are you
taking the same ICF and ADF and compiling the on the 2 different
boxes?


Here are a couple of threads that may help.
http://groups.google.com/group/microsoft.public.sqlserver.notificationsvcs/browse_thread/thread/ad0a2a0ae59696a0/e181137aa9db61e8?q=extended&rnum=30#e181137aa9db61e8
http://groups.google.com/group/microsoft.public.sqlserver.notificationsvcs/browse_thread/thread/583c5cb814fe80b2/a17444069ed40add?q=extended&rnum=7#a17444069ed40add


HTH...


--
Joe Webb
SQL Server MVP
http://www.sqlns.com


~~~
Get up to speed quickly with SQLNS
http://www.amazon.com/exec/obidos/tg/detail/-/0972688811

I support PASS, the Professional Association for SQL Server.
(www.sqlpass.org)


[quoted text, click to view]
Eagle
10/26/2005 3:45:08 AM
Thanks for reply, Joe!

[quoted text, click to view]

It's only test server ... Product server is stand-alone.

[quoted text, click to view]

I used "GrantXpExec.cmd" from \bin NS's directory and
"GrantPermissions.cmd" from Samples. Accordingly,
'DOMAIN\notification_services' account is member of the NSRunService
role in "...InstanceApp" and "...InstanceNSMain" databases.

[quoted text, click to view]
Yes. Yes.
Joe Webb
11/1/2005 11:39:00 AM
Are you using a hosted event provider or a custom, non-hosted event
provider?

--
Joe Webb
SQL Server MVP
http://www.sqlns.com


~~~
Get up to speed quickly with SQLNS
http://www.amazon.com/exec/obidos/tg/detail/-/0972688811

I support PASS, the Professional Association for SQL Server.
(www.sqlpass.org)


[quoted text, click to view]
Eagle
11/3/2005 1:31:36 AM
I use non-hosted event provider and generate event from stored
procedure.
Joe Webb
11/13/2005 8:16:53 AM
Are you using Window Authentication?

Sounds like the non-hosted event provider running as 'NT
AUTHORITY\SYSTEM'?

HTH...

--
Joe Webb
SQL Server MVP
http://www.sqlns.com


~~~
Get up to speed quickly with SQLNS
http://www.amazon.com/exec/obidos/tg/detail/-/0972688811

I support PASS, the Professional Association for SQL Server.
(www.sqlpass.org)


[quoted text, click to view]
Eagle
11/16/2005 8:50:14 AM
Thank you very much, Joe!

Yes, i use Windows Authentication for Notification Services and my
non-hosted event provider (MSSQL$DB service) running as 'LocalSystem'
account.
I was sure that my DB-service running as 'DOMAIN\sql_server' account
.... Simply an overlook on my part...

Everything works perfect now!!!! :)
Joe Webb
11/17/2005 7:01:10 AM
Great!

Happy Notifying! :)

--
Joe Webb
SQL Server MVP
http://www.sqlns.com


~~~
Get up to speed quickly with SQLNS
http://www.amazon.com/exec/obidos/tg/detail/-/0972688811

I support PASS, the Professional Association for SQL Server.
(www.sqlpass.org)


[quoted text, click to view]
AddThis Social Bookmark Button