Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
DB Engine
SQL ServerMSDESQL Server CE
Services
Analysis (Data Mining)Analysis (OLAP)DTSIntegration ServicesNotification ServicesReporting Services
Programming
CLRConnectivitySQLXML
Other Technologies
ClusteringEnglish QueryFull-Text SearchReplicationService Broker
General
Data WarehousingPerformanceSecuritySetupSQL Server ToolsOther SQL Server Topics
DirectoryUser Groups
Related Topics
MS AccessOther DB ProductsMS Server Products.NET DevelopmentVB DevelopmentJava DevelopmentMore Topics ...

SQL Server Forum / Services / Notification Services / September 2006

Tip: Looking for answers? Try searching our database.

Multiple Subscriptions to the Same Field Type

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Isadore Schwartz - 14 Aug 2006 21:19 GMT
Hi all,

I am looking at an application configuration that requires me to manage data
for multiple clients as a single manager. Basically, I can have any number of
clients I am responsible for (say 20), and I need to be able to retrieve any
updates to data regarding those clients as it comes in. Thus, I could receive
an update for 1 client, 5 clients, or all 20 clients all at the same time.

My question is this. In a subscription model through SQL-NS, what would be
the most reasonable/efficient way to manage that many clients (assuming that
the search context would be - "give me all XXX for client YYY" in the
subscription.

I'm finding myself a little stuck functionally between having to define an
individual susbscription for all 20 of the clients (for the single manager
individual), or some sort of dynamic subscription that has all 20 clients as
individual fields in the subscription.

What do any of you feel would be the best way to work with this?
Diane Larsen [MSFT] - 30 Aug 2006 19:58 GMT
Could you use a subquery in your WHERE clause to select the list of clients
from another table?

Signature

Diane Larsen [MSFT]
SQL Server User Education

This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm.

> Hi all,
>
[quoted text clipped - 21 lines]
>
> What do any of you feel would be the best way to work with this?
Joe Webb - 31 Aug 2006 12:11 GMT
I'm assuming the events, subscriptions, etc are the same for the
clients?

If so, could you combine the data into one table (replication, etc)
using and clientid column to indicate where it came from and then use
that as part of your matching rule? When the subscriber signs up, they
could either select it themselves or have the subscription management
app do it for them behind the scenes.

HTH...

Signature

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)

>Hi all,
>
[quoted text clipped - 15 lines]
>
>What do any of you feel would be the best way to work with this?
Isadore Schwartz - 01 Sep 2006 14:41 GMT
Hi all,

Thanks for the initial responses. I think I explained what I was looking at
in the wrong way. The answers help a bit, but the situation is a little
different than what I believe I was able to express. I'll try to explain the
scenario a little better below.

Let's use Sales people as an example.

I am Joe, a sales person for widget dealers. There are 20 other sales people
on the sale force. We're all responsible for managing how many widgets are in
stock, how many have been sold, and the people we've sold them too.

This is the situation. I come into work on Monday. I log into the system, I
have a subscription to the application that says "give me a listing of all of
the widgets I've sold since the last time I logged in, and who I sold them
to." That's the easy part.

The difficult part is this. I also can manage and review sales data for 10
of the other 20 sales people. So, when I log in, not only do I have to
retrieve all of the updated widget sales for myself, I also have to retrieve
all of the updated widget sales for the other 10 sales people that I have
access to.

So, really, my question is how best to manage that from a subscription
aspect. Do I have one subscription with a massive event rule for matching?
Multiple subscriptions for every other sales person that I am somehow an
associated subscriber to on top of my own subscription? Manage it someway via
tables in the database? Or some other method.

At the moment (pre-SQLNS), we manage this application by storing a 'group'
table in the database, which has one ID for the group, and a listing of all
of the sales people IDs in that group. When we go to retrieve the data, the
first thing we do is create a temporary table that is filled with all of the
IDs for the group the logged individual is in, and then parses through each
ID in that table to retrieve the relevant data for each person before
returning the entire data set to the individual that is logged in.

Thanks again.

> I'm assuming the events, subscriptions, etc are the same for the
> clients?
[quoted text clipped - 26 lines]
> >
> >What do any of you feel would be the best way to work with this?
Joe Webb - 06 Sep 2006 12:36 GMT
Hi Isadore -

The good news is that I think you have plenty of options from which to
choose the best one that meets your needs. You certainly could create
a subscription for every sales person you're responsible for - I don't
know that your users will necessarily find that to be the best
implementation though.

Why not use the group scenario like the pre-SQLNS days, if that worked
well for you?  You could include the join in your match rule. I think
you could probably re-write the current query to use joins or even
subqueries and do away with the need for a temp table.

HTH...

Signature

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)

>Hi all,
>
[quoted text clipped - 66 lines]
>> >
>> >What do any of you feel would be the best way to work with this?
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2010 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.