G
Graville
All,
OK wasn't sure where to post this one but this should hopefully be ok.
I am looking for a way to streamline some of the process within our
dev team. One of the areas that often takes time and gets missed by
the guys is the generation of SQL Scripts and checking them into
sourcecontrol.
I know that using SQL Server profiler you directly trace ALTER, DELETE
and CREATE statements on all objects in your database. You can also
record these to a table and replay at a later date. What I would like
to do is create a windows service that I can install on the DB server
which will monitor these events (not from the table but as they
happen). When a stored procedure is altered a notification of the
change is sent to the dev team who will have a client installed and
the change will be automatically commited to source control. The idea
is more rounded than that but you get the idea.
Anyways, the part I am having trouble on is understanding how I can
hook into Object:Altered events. Is there a .NET API? Is it WMI?
Hope someone can point me in the right direction,
Dave Hanson
OK wasn't sure where to post this one but this should hopefully be ok.
I am looking for a way to streamline some of the process within our
dev team. One of the areas that often takes time and gets missed by
the guys is the generation of SQL Scripts and checking them into
sourcecontrol.
I know that using SQL Server profiler you directly trace ALTER, DELETE
and CREATE statements on all objects in your database. You can also
record these to a table and replay at a later date. What I would like
to do is create a windows service that I can install on the DB server
which will monitor these events (not from the table but as they
happen). When a stored procedure is altered a notification of the
change is sent to the dev team who will have a client installed and
the change will be automatically commited to source control. The idea
is more rounded than that but you get the idea.
Anyways, the part I am having trouble on is understanding how I can
hook into Object:Altered events. Is there a .NET API? Is it WMI?
Hope someone can point me in the right direction,
Dave Hanson