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

sql server notification services : Using just stored procedures to create and delete users


sidgam NO[at]SPAM hotmail-dot-com.no-spam.invalid
7/8/2005 1:00:16 AM
Is it safe to use the follow stored procedures in the order below t
effect a bulk enrollment of users
1) NSMain.dbo.NSInsertSubscribe
2) NSMain.dbo.NSInsertSubscriberDevic
3) NSMain.dbo.NSInsert<SubClassName>SubscriptionSchedul
4) NSMain.dbo.NSInsert<SubClassName>Subscriptio

Is it safe to use the following stored procedures in the order belo
to effect a bulk delete of users
1) NSMain.dbo.NSDeleteAllSubscription
2) NSMain.dbo.NSDeleteSubscriberDevic
3) NSMain.dbo.NSDeleteSubscribe

Please let me know

Thanks
Joe Webb
7/12/2005 1:47:51 PM
As mentioned in replys to your post over in the forums, the short
answer is: no, those sprocs come with the standard "don't mess with
the underlying structure" warnings from Microsoft.

The Subscription Management Objects are the recommended way to go to
create subscribers, subscriber devices, and subscriptions.

If you're interested, I've created a little C# app that I use to
create test subscribers, subscriber devices, and subscriptions for the
SQLNS apps that I create. I've made it freely available on the
downloads page of my web site.
http://www.webbtechsolutions.com/downloads.aspx.

HTH...

--
Joe Webb
SQL Server MVP


~~~
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 Fri, 08 Jul 2005 01:00:16 -0500,
[quoted text, click to view]
sidgam NO[at]SPAM hotmail-dot-com.no-spam.invalid
7/14/2005 1:00:08 AM
Thnx for your reply Joe

We do have a subscription management interface which calls the NS AP
for create and delete of users

However, we have a requirement that has come in which needs removal o
large number of user (1000s). It would be better in terms o
performance to dts these users up into the db and then run sp's t
more them. That is why I am exploring the non-standard route fo
creating/deleting
AddThis Social Bookmark Button