all groups > sql server notification services > april 2005 >
You're in the

sql server notification services

group:

Source for Event Data


Source for Event Data RDV
4/1/2005 1:44:10 PM
sql server notification services:
Does the event data have to reside in a SQL Server table? We have a
large proprietary database that contains the event data for our
proposed SQL NS application. If possible I would like to not duplicate
this data in the SQL Server table for the NS application.
Does the event data have to be in the SQL Server tables or can it be
accessible via any ODBC data source?
RE: Source for Event Data Balaji Ramachandran
4/4/2005 6:45:05 AM
Hi,
AFAIK, event data has to reside in the same SQL Server table.
The current version doesn't support to get event data from ODBC resources.
But the application architecture can support it.

You have to duplicate the event data in the SQL Server table.

Regards,
R.Balaji


[quoted text, click to view]
Re: Source for Event Data Joe Webb
4/4/2005 11:30:24 AM
With NS2.0, the event & chron rules must use the notification function
provided by the NS framework. This changes in 2005 where we will be able
to define the matches using standard T-SQL statements.

If you'd rather not "duplication the data", then you can consider
creating a custom delivery protocol that accepts a minimal amount of
event data, goes out to your propriety data for the rest of the event
information, and then sends the notification.

However, if you're primary concern is database growth, the vaccuumer can
help with this.

HTH...
Joe Webb
SQL Server MVP

~~~
Get up to speed quickly with SQLNS
http://www.amazon.com/exec/obidos/tg/detail/-/0972688811



[quoted text, click to view]
Re: Source for Event Data Shyam Pather [MSFT]
4/4/2005 12:46:14 PM
Hello all,
Actually, neither answer given so far is correct :-).

To answer the original question, your event data can reside anywhere that
can be accessed from a SQL statement on the server hosting your NS
applications. So, it can be in another database on the same server, or on a
linked server that you refer to using a four-part name.

If your application is event-triggered, then you may need to submit some
"pseudo-events" that just serve as a kick to the NS application to perform
matching. These pseudo-events can simply be IDs that refer to rows in an
existing table elsewhere.

Your match rule can have any of the following forms:

--Local data
SELECT NotificationClassNameNotify(...)
FROM EventClassName e, Subscriptions s
WHERE ...

--Data in another database
SELECT NotificationClassNameNotify(...)
FROM mydatabase.dbo.RealEvents events, EventClassName e, Subscriptions s
WHERE events.Id = e.Id AND ...

--Data on another server
SELECT NotificationClassNameNotify(...)
FROM myserver.mydatabase.dbo.RealEvents events, EventClassName e,
Subscriptions s
WHERE events.Id = e.Id AND ...

If you have a copy of my book
(http://www.amazon.com/exec/obidos/tg/detail/-/0672326647/) you can see an
example of this. My MusicStore application simply uses SongIds to refer to
Song data in another database.

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.
---------------------------------------------
[quoted text, click to view]

Re: Source for Event Data Joe Webb
4/4/2005 8:47:46 PM
Ahh....THANKS Shyam! That's terrific to know! :)

(I'm embarrassed to say I missed that in your book.)

HTH...
Joe Webb
SQL Server MVP

~~~
Get up to speed quickly with SQLNS
http://www.amazon.com/exec/obidos/tg/detail/-/0972688811



[quoted text, click to view]
Re: Source for Event Data RDV
4/5/2005 5:55:36 AM
Great! Thanks for the great responses. Shyam, I have you book ... it
is a great resource for getting started in SQL-NS.
AddThis Social Bookmark Button