As part of my troubleshooting I did execute the call to the notify xp. You
that it should not be executed directly. An entry in the BoL would be good to.
Thanks for the pointer.
"Shyam Pather [MSFT]" wrote:
> Hello,
> This error generally indicates that the in-memory state used by the Notify
> XP has become corrupted. This usually happens if the Notify function has
> been invoked directly i.e. not from within the Notification Services
> context. Is this a possibility in your scenario?
>
> Unfortunately, the only way to recover from this state is to restart the SQL
> server.
> -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. > ---------------------------------------------
> "[WRX]Raven" <WRXRaven@discussions.microsoft.com> wrote in message
> news:CF13EDBF-B51D-4425-9A87-455AE38E6E98@microsoft.com...
> > As additional information if it helps any.
> >
> > The call works if you add one after the other parameter until
> > NotificationThrottle!?
> >
> > EXEC @XPReturn = master.dbo.xp_NSNotify_2_0_3008_0
> > @SPID,
> > 1,
> > @DigestDelivery,
> > @MaxBatchSize,
> > @NotificationThrottle
> >
> > It really seems to be an issue within the execution of this xp.
> >
> > "[WRX]Raven" wrote:
> >
> > > Joe, I am experiencing a similiar problem to Mark. I had the NS running
> just
> > > fine and then had to run an update that changed the Event tables and
> rules,
> > > the XSLT, and a couple of other minor configuration settings.
> > >
> > > Now, I get the following error in the SQL logs and event logs:
> > >
> > > Error: 60018, Severity: 19, State: 50
> > > Notification Services error 60018
> > >
> > > Not very discriptive or helpful. I traced through all the permissions
> the
> > > account has, cross db chaining, and everything looked ok. Some
> permissions
> > > had been lost when the replacement objects due to the NSCONTROL update,
> I
> > > replaced those and still nothing.
> > >
> > > I traced things to the Notify function and extracting out what it
> executes I
> > > get the following...which gives me the error I am seeing.
> > >
> > > DECLARE @SPID INT
> > >
> > > SELECT @SPID = @@SPID
> > >
> > > EXEC @XPReturn = master.dbo.xp_NSNotify_2_0_3008_0
> > > @SPID, 1, 1, 0, 1000, 'General Delivery -
> > > 423939',
> > > 'EmailDevice', 'en-us', 528, '1013470877',
> 423939,
> > > 1.00, 'Test'
> > >
> > > select @XPReturn
> > >
> > > Results:
> > >
> > > Server: Msg 60018, Level 19, State 1, Line 0
> > > Notification Services error 60018
> > >
> > > -----------
> > > 1
> > >
> > > (1 row(s) affected)
> > >
> > > Anyone have any thoughts?
> > >
> > > I have already unregistered, removed everything, re-registered, double
> > > checked the permissions, and dropped and re-created the extended procs.
> > > Totally at a loss.
> > >
> > > "Joe Webb" wrote:
> > >
> > > > Hi Mark,
> > > >
> > > > I meant to ask: Have you run profiler to see what's going on there?
> > > >
> > > >
> > > >
> > > > HTH...
> > > > Joe Webb
> > > > SQL Server MVP
> > > >
> > > > ~~~
> > > > Get up to speed quickly with SQLNS
> > > >
http://www.amazon.com/exec/obidos/tg/detail/-/0972688811 > > > >
> > > >
> > > >
> > > > > I have a ScheduledRule in my ADF call an SP in another database.
> This
> > > > > SP in turn calls the Notify function in my NS database. The call is
> > > > > generating a 60018 error, which indicates that the "Generator
> context"
> > > > > is not valid for the Notify call.
> > > > >
> > > > > The ADF Rule is s just a single exec to the external proc. From
> what
> > > > > I understand this is a valid design. Is there anything else I need
> to
> > > > > do to allow the external SP call to the Notify function to succeed?
> > > > >
> > > >
> > > >
> > > >
> > > >
>
>