As I said in my previous post, I think it's a schedule problem.
This posting is provided "AS IS" with no warranties, and confers no rights.
"Joe Webb" <joew@webbtechsolutions.com> wrote in message
news:#A8EDzATFHA.2336@TK2MSFTNGP12.phx.gbl...
> Hi R. Balaji -
>
> Looks like the matching rule in your scheduled subscription is the
> culprit. It should join the event data with the subscription data.
> Something like this:
>
> SELECT dbo.CenterMetricsNotificationNotify(
> s.SubscriberId,s.DeviceName,s.SubscriberLocale,
> e.Name, e.Id, e.Age)
> FROM EventChron e, CenterMetricsSubscriptions s
> WHERE e.Id = s.Id
>
> Since your posting didn't include the full ADF, I cannot tell exactly
> what your Chron table looks like so the above matching rule is only an
> approximation.
>
>
>
>
> HTH...
> Joe Webb
> SQL Server MVP
>
> ~~~
> Get up to speed quickly with SQLNS
>
http://www.amazon.com/exec/obidos/tg/detail/-/0972688811 >
>
>
> Balaji Ramachandran wrote:
> > Hi,
> > I am able to generate event based notifications.
> >
> > But I am not getting mails from scheduled notification subscriptions.
> >
> > What could be the problem.?
> >
> > Here goes the ADF file.........
> >
> > <SubscriptionClass>
> > <ScheduledRules>
> > <ScheduledRule>
> > <RuleName>CenterMetricsWeeklyReportRule</RuleName>
> > <Action>
> > SELECT dbo.CenterMetricsNotificationNotify(
> > s.SubscriberId,s.DeviceName,s.SubscriberLocale,
> > 'name1','id1','age1'
> > FROM CenterMetricsSubscriptions s
> > </Action>
> > </ScheduledRule>
> > </ScheduledRules>
> > </SubscriptionClass>
> >
> >
> > <NotificationClass>
> > <NotificationClassName>CenterMetricsNotification</NotificationClassName>
> > <Schema>
> > <Fields>
> > <Field>
> > <FieldName>name1</FieldName>
> > <FieldType>varchar(20)</FieldType>
> > </Field>
> > <Field>
> > <FieldName>id1</FieldName>
> > <FieldType>varchar(20)</FieldType>
> > </Field>
> > <Field>
> > <FieldName>age1</FieldName>
> > <FieldType>varchar(20)</FieldType>
> > </Field>
> > </Fields>
> > </Schema>
> > <ContentFormatter>
> > <ClassName>XsltFormatter</ClassName>
> > <Arguments>
> > <Argument>
> > <Name>XsltBaseDirectoryPath</Name>
> > <Value>%_BaseDirectoryPath_%\Subscribe\Include</Value>
> > </Argument>
> > <Argument>
> > <Name>XsltFileName</Name>
> > <Value>CenterMetrics.xslt</Value>
> > </Argument>
> > </Arguments>
> > </ContentFormatter>
> > <DigestDelivery>true</DigestDelivery>
> > <Protocols>
> > <Protocol>
> > <ProtocolName>SMTP</ProtocolName>
> > <Fields>
> > <Field>
> > <FieldName>Subject</FieldName>
> > <SqlExpression>'test'</SqlExpression>
> > </Field>
> > <Field>
> > <FieldName>BodyFormat</FieldName>
> > <SqlExpression>'html'</SqlExpression>
> > </Field>
> > <Field>
> > <FieldName>From</FieldName>
> > <SqlExpression>'test@test.com'</SqlExpression>
> > </Field>
> > <Field>
> > <FieldName>Priority</FieldName>
> > <SqlExpression>'Normal'</SqlExpression>
> > </Field>
> > <Field>
> > <FieldName>To</FieldName>
> > <SqlExpression>DeviceAddress</SqlExpression>
> > </Field>
> > </Fields>
> > </Protocol>
> > </Protocols>
> > </NotificationClass>
> >
> >
> > when I run the select on the view CenterMetricsSubscriptions it returns
0
> > rows.
> > I created some subscribers with proper time zones and subscribers are
> > getting created.
> >
> > Instead of the CenterMetricsSubscriptions view, If I give the table
> > NSCenterMetricsSubscriptionsSubscriptions, then I am getting
notifications.
> > But it generates notifications for all subscribers at same time which is
> > wrong.
> >
> > What I am missing?
> >
> > Thanks for your help.
> >
> > Regards,
> > R.Balaji
> >