all groups > sql server notification services > january 2006 >
You're in the

sql server notification services

group:

How to access NS remotly?


How to access NS remotly? tarpan
1/17/2006 1:56:04 PM
sql server notification services:
Hi,

It suppose to be real simple, but I can not find out how to do it. I have a
SQL server and Web server on 2 separate PCs. When I create NSInstance object

NS_Instance = New
Microsoft.SqlServer.NotificationServices.NSInstance(NS_InstanceName)

.Net tries to access NS right on the Web server.

How to point it to the another PC?



Thanks

Oleksiy

Re: How to access NS remotly? Joe Webb
1/17/2006 4:58:29 PM
On the server that will host your subscription management application,
you need to register the instance using something like:

nscontrol register -name instanceName -server databaseServer

where instanceName is the name of the instance and databaseServer is
the name of the server that hosts the instance database.

If you omit the -server parameter, NSControl defaults to the local
server name.

How did you register your instance on the IIS box?

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)




On Tue, 17 Jan 2006 13:56:04 -0800, tarpan
[quoted text, click to view]
Re: How to access NS remotly? tarpan
1/18/2006 11:48:43 AM
nscontrol Crashes if I start it from remote location.

"Notification Services Command Prompt" shows
CMD.EXE was started with '\\jadm\c\Program Files\Microsoft SQL
Server\90\Notific
ationServices' as the current directory path. UNC paths
are not supported. Defaulting to Windows directory.
'C:\Program' is not recognized as an internal or external command,
operable program or batch file.



[quoted text, click to view]
Re: How to access NS remotly? tarpan
1/18/2006 12:17:26 PM
[quoted text, click to view]

I did not.
Do I have to?

How I can register it if nscontrol.exe does not exist on the IIS box?
Do I have to install the SQL 2005 just to run nscontrol.exe once? %-)
Re: How to access NS remotly? Joe Webb
1/19/2006 5:18:19 AM
From BOL:

"The nscontrol register command must be run locally. You cannot
register Notification Services on a remote server."

You need to install the NS client components on the IIS box and then
use NSControl to register the instance.

HTH...

Joe



--
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)



On Wed, 18 Jan 2006 11:48:43 -0800, tarpan
[quoted text, click to view]
Re: How to access NS remotly? Joe Webb
1/19/2006 5:22:05 AM
[quoted text, click to view]
Yes. Otherwise the IIS box will not know of your instance.

[quoted text, click to view]
Install the NS Client components on the IIS box.

[quoted text, click to view]
No, just the client components.

[quoted text, click to view]
Right. It must be run locally.

Check out "Deploying a Subscription Management Interface" in 2005 BOL.
ms-help://MS.SQLCC.v9/MS.SQLSVR.v9.en/sqlntsv9/html/7854de6a-ade3-490d-bc85-5ef0e1c6c18c.htm


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)





On Wed, 18 Jan 2006 12:17:26 -0800, tarpan
[quoted text, click to view]
Re: How to access NS remotly? tarpan
1/19/2006 11:13:03 AM
Thank you very much.
Your answers are very helpful.


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