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

sql server notification services

group:

Customizing NS instance db - opinions?


Customizing NS instance db - opinions? unc27932 NO[at]SPAM yahoo.com
2/28/2006 4:38:10 PM
sql server notification services: I want just a few more features in my notification application that I
haven't seen in SQL NS - the main feature we're desiring is the
ability for subscribers to maintain their subscriptions. I know this
needs to happen in a Sub. Management interface, but here's what I'm
getting at. If all I want is simply to add one table into the instance
DB to store username, password, firstname, lastname, and have
subscriberID as the primary key, is this a problem? Also probably some
custom stored procedures.

I didn't want to have to have a profile/account/login sort of database
elsewhere and try & maintain duplicate data between that DB & my NS
DB.

So theoretically, the user could login to a web site (hitting my custom
tables & stored procedures to validate their account/password). Then
the site would use all the normal views avaialable from NS to allow the
user to manage their own subscriptions. Any problems with this? I
would still be using Microsoft approved ways to manage subscribers,
subscriber devices, and subscriptions - through their views.
Everything would be in one database.
Re: Customizing NS instance db - opinions? Joe Webb
3/1/2006 12:00:00 AM
Are you using SQL Server 2005? If so, you can create the instance and
application database objects in an existing database.



--
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]
Re: Customizing NS instance db - opinions? unc27932 NO[at]SPAM yahoo.com
3/1/2006 6:18:57 AM
We are using 2005. Thanks Joe. I've already created the instance &
application databases. Is it better to...

1. First create my custom database, then create the NS instance &
applicaiton dbs, in the existing db

OR

2. First create the NS application & db, then customize.

Presently I'm doing #2, simply b/c I only have 1 extra table & a few
SPs.
Re: Customizing NS instance db - opinions? unc27932 NO[at]SPAM yahoo.com
3/1/2006 6:37:01 AM
My only issue with #1 is that my SPs and table triggers use the views
to manage subscribers. For example....a web user comes to the site,
creates an account with a username, password, firstname, lastname,
emailaddress etc. I insert this into my custom table (the
profile/account tracker table), then an insert trigger inserts into the
NSSubscriberView with the user marked as disabled, and inserts into the
NSSubscriberDeviceView with their default email address. Then a
validation email is sent out saying - hey you registered, click here to
confirm, and the page they get sent to updates the NSSubscriberView and
sets them to be enabled. I could only set up these triggers & sps
after already creating the NS databases, b/c they depended on the NS
views. If I create an existing database (which would really only have
1 table) and try to add in my custom trigger, SP, etc., and there's no
NS views there, I won't be able to.

#1 & #2 seem to produce the same end result to me. I'm not altering
any of the NS code. I just have added one table, several stored
procedures, and a trigger on my custom table (not on the NS stuff). I
could see how if I was messing around with the NS code/tables then this
would be dangerous.

Any more thoughts?
Re: Customizing NS instance db - opinions? Joe Webb
3/1/2006 8:25:38 AM
The only supported/recommended way of doing #2 is to do all
customizations through the ICF & ADF.

So I'd recommend going with #1.

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)

[quoted text, click to view]
Re: Customizing NS instance db - opinions? Joe Webb
3/2/2006 12:00:00 AM
Either should work, then. Just take care when you update your instance
that your changes are not lost along the way.

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]
Re: Customizing NS instance db - opinions? unc27932 NO[at]SPAM yahoo.com
3/2/2006 7:47:02 AM
Yes - definitely being sure to back everything up & script it out, etc.
AddThis Social Bookmark Button