Like I said, my proposed solution would be very brutish and unelegant.
"Joe Webb" wrote:
> On Tue, 17 Apr 2007 05:10:02 -0700, Todd C wrote:
>
> > Joe:
> >
> > The "Subscription Management Application", at this point, is me and a couple
> > of stored procedures I run from SSMS. The Subscribers have no direct
> > interface YET.
> >
> > The goal is to make it easier for SOMEBODY (that sombody being me now and
> > the users later on) if they want to edit their parameters. Managing one
> > record of Subscription info per user seems easier than managing 15 or 20.
> >
> > I guess what I am really looking for is to have the Subscription matching
> > logic dynamically parse out the Parameter values at "Match Time".
> >
> > This is my very "UN-ELEGANT" theory for a possible solution:
> > Have a cursor step through each Subscription row and parse the two
> > parameters into two respective temp tables, then do a FULL OUTER JOIN of
> > those two temp tables, and insert the rows into a third table along with the
> > SubscriberID, DeviceName, and Locale. The cursor would need to clear out the
> > temp tables before it moved on to the next Subscription row.
> >
> > In the end, the 'match logic' would look at the final (third) table which
> > would have a fully normalized set of subscription data in it. After all the
> > subscription matching is done, the third table would need to be cleaned out
> > to get ready for the next quantum run.
> >
> > Very brutish but I think it would work. Looking for any suggestions on a
> > better way to do this.
>
>
> I would definitely try to dissuade you from that implementation. As clever
> and creative as it is, performance would likely be very, very bad.
> Cursors, as I'm sure you already know, are resource intensive and should
> be used only as a last resort. Using them in the match rule could cause
> some unintended results.
>
> If you are managing subscription with scripts (currently), and later with
> a subscription management application, I would suggest that you keep the
> 12-20 subscriptions per user so that SSNS can do its thing well. You can
> write scripts (and later on the SMA) to allow you to pass in the delimited
> string, XML doc, whatever, to the scripts and have them parse out the
> subscriptions.
>
> Just my two cents...
>
> HTH...
>
> Joe
>
>
> --
> Joe Webb
> SQL Server MVP
>
http://www.sqlns.com >
>
>
>