Oh, I see! There is no relationship between the two.
I can specify a particular nonhostedprovider and specify any event class.
I had completely missed that.
"Shyam Pather [MSFT]" <spather@online.microsoft.com> wrote in message
news:eS$W0G8DFHA.4032@TK2MSFTNGP10.phx.gbl...
> Hi Anthony,
> Actually, the only valid configuration for <NonHostedProvider> is with
just
> the provide name specified. NS does not recognize, or allow you to
specify,
> a class name etc for <NonHostedProvider>.
>
> There is no correlation between event providers and event classes: any
event
> provider may submit events of any event class. The event class name is
> specified at the time of event submission, using one of the 3 event
> submission APIs (the managed event object API, the SQL stored procedures,
or
> the XML bulkloader).
>
> -shyam
>
> --
> Learn more about SQL-NS:
>
http://www.amazon.com/exec/obidos/tg/detail/-/0672326647/ > ---------------------------------------------
> 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. > ---------------------------------------------
> "Anthony Small" <anthony.small@btclick.com> wrote in message
> news:#jh7Tz2CFHA.2232@TK2MSFTNGP14.phx.gbl...
> > Hi Shyam,
> > I have already ordered your book and I am awaiting delivery.
> >
> > I think the difference between NonHosted (with className etc provided)
vs
> > NonHosted (with only the ProviderName specified) is also a valid
> > distinction.
> > And that fact that I can simply specify a NonHostedProvider node with
only
> > name but link specified to any particular event class is also
interesting.
> > What if my application has several EventClasses with several
> > NonHostedProviders how does SQLNS correlate calls on a particular
provider
> > to a particular event class? This really was my initial problem. I could
> not
> > see how merely specifying a providername could cause SQLNS to map events
> > supplied to that provider to a particular eventclass.... and BOL wasn't
> > helpful!
> >
> > TIA
> >
> > Tony S.
> >
> > I think you take my point which is that
> > "Shyam Pather [MSFT]" <spather@online.microsoft.com> wrote in message
> > news:OubbQ7wCFHA.208@TK2MSFTNGP12.phx.gbl...
> > > Anthony,
> > > An event provider is some entity that submits events. The definition
of
> a
> > > hosted event provider is one that runs in the NS service process i.e.
an
> > > event provider that is "hosted" by the NS service. A non-hosted
provider
> > is
> > > one that runs in any other process (such as query analyzer if you're
> > > submitting events manually, or IIS if you're using a web-based event
> > > provider). That's actually the only distinguishing characteristic: the
> > > process in which the event provider runs.
> > >
> > > For hosted providers, you need to include configuration information in
> > your
> > > ADF that tells the NS service how to load the provider. You typically
> > supply
> > > a provider class name, which can be the name of one of the built-in
> hosted
> > > providers, or the class name of a custom hosted provider you have
> > > implemented. Implementing a custom hosted event provider involves
> writing
> > a
> > > .NET class that implements the IEventProvider or
IScheduledEventProvider
> > > interfaces. If you're using a custom hosted event provider, you need
to
> > > supply an assembly name, and any required arguments as well.
> > >
> > > Non-hosted providers are external to the NS service, therefore the NS
> > > service does not need to know much about them. In fact, the only
reason
> > you
> > > provide a name is for tracking purposes (auditing which events were
> > > submitted by which provider later on). The NS service does not need to
> > know
> > > how to load or configure them because it does not host these
providers.
> By
> > > supporting non-hosted providers, NS allows you to submit events from
any
> > > application. Non-hosted providers are always custom, in the sense that
> > > they're always provided by you: NS does not provide any built-in
> > non-hosted
> > > event providers.
> > >
> > > So really, the following distinctions exist:
> > >
> > > Hosted (runs in the NS service) vs. Non-hosted (runs outside the NS
> > service)
> > > Custom (code provided by you) vs. Built-in (provided by NS)
> > > Scheduled (invoked on a fixed schedule) vs. Continous (invoked once
and
> > > expected to run continuously)
> > >
> > > The scheduled vs. continuous distinction is really only valid when
> talking
> > > about hosted event providers.
> > >
> > > Sorry this confusing - there are lots of dimensions here, to allow for
> > > maximum flexibility. I'll pass your feedback on to our doc writer and
> see
> > if
> > > we can clarify this in the next release.
> > >
> > > If you need more info, my book on SQL-NS
> > > (
http://www.amazon.com/exec/obidos/tg/detail/-/0672326647/) provides
> > > detailed info on all aspects of event providers in Chapter 8.
> > >
> > > Hope this helps.
> > > -shyam
> > >
> > > --
> > > Learn more about SQL-NS:
> > >
http://www.amazon.com/exec/obidos/tg/detail/-/0672326647/ > > > ---------------------------------------------
> > > 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. > > > ---------------------------------------------
> > > "Anthony Small" <anthony dot small at pygmalion dot com> wrote in
> message
> > > news:OtIg8ltCFHA.3256@tk2msftngp13.phx.gbl...
> > > > Hey Joe,
> > > > Thanks for the good examples!
> > > >
> > > > Tony S.
> > > > ps waiting to take delivery of your book!
> > > >
> > > > "Joe Webb" <joew@webbtechsolutions.com> wrote in message
> > > > news:eCXffhtCFHA.2676@TK2MSFTNGP12.phx.gbl...
> > > > > Hey Tony -
> > > > >
> > > > > An example of a non-hosted event provider would be another
database
> > > > > application that calls the Event Collection Stored Procedures
> directly
> > > > > such as a web site, CRM package, or order entry system. NS just
> needs
> > to
> > > > > know the name in advanced.
> > > > >
> > > > > Non-hosted event providers are run or "triggered" by their own
> > > mechanisms,
> > > > > whether scheduled or event-driven.
> > > > >
> > > > >
> > > > > HTH...
> > > > > Joe Webb
> > > > > SQL Server MVP
> > > > >
> > > > > ~~~
> > > > > Get up to speed quickly with SQLNS
> > > > >
http://www.amazon.com/exec/obidos/tg/detail/-/0972688811 > > > > >
> > > > >
> > > > >
> > > > > Anthony Small wrote:
> > > > >> Hi Colin,
> > > > >> Thanks for your response.
> > > > >> It seems to me that an NS application needs a <nonhostedprovider>
> to
> > be