all groups > dotnet myservices > february 2005 >
You're in the

dotnet myservices

group:

First Time Service....(cross posted)


First Time Service....(cross posted) Zac Maclean
2/24/2005 2:18:02 PM
dotnet myservices:
Looking for some pointers, tutorials, online help to get me going.

I need to write a service that monitors a SQL server agent (replication) and
will run basically a macro in an Office program to update certain files
maintained in the DB.
Basic flow:

User fires replication event, updating up to 50 records.
If certail record criteria are met, service initiates an Office macro that
updates the files (no other way I can find to do this part)
Service drops back to monitoring.


I may have up to 10 people updating a day, mostly at different times. If
this is impossible (or even "extremely difficult") I can skip it.
I have moderate experience programming and fully understand OOP, just not
used to breaking it down completely.


TIA
Z

Re: First Time Service....(cross posted) Lee Gillie
2/25/2005 4:22:31 PM
[quoted text, click to view]

Not impossible. My experience automating Office has been slightly
problematic, in the area of errors. Sometimes it wants to throw up a
message box which is detrimental to services.

Otherwise, in general I tend to strive to avoid polling. If you can
trigger your activity to fire a SQL SP or SQL XSP, your system will
behave better. But polling can be done.

Do the best job of Try-Catch protecting everything, and log all
unexpected issues, is my advice.

If this is your first service project, then the learning curve will hit
you, but for anyone writing services often, this sounds minor.

Good luck on your project.

Re: First Time Service....(cross posted) Zac Maclean
2/28/2005 8:12:54 AM
Thanks.. After looking into it more, I have decided to go for a "Plug-in"
approach. And write my service framework as a "MS OFFICE service" to
automate what ever cool ideas (or insane ones) that management devises.

Looks like I will be extending the time frame on the project slightly, but I
am confident in my coding capabilities, and will try to update info here or
on a board somewhere to help other n00bs :-)

Z

[quoted text, click to view]

AddThis Social Bookmark Button