Showing posts with label activities. Show all posts
Showing posts with label activities. Show all posts

Friday, March 9, 2012

Monitoring database activities from outside SQL Server

Hi,

I want to know how can I monitor some operations that are executed on a SQL Server database. Operations like: INSERT, DELETE, UPDATE, transactions, and so on (I know that I can do this using triggers, but doing this way I'll have to fill a table with the information from the triggers and stay loading the table data all the time. I want a way to monitor using other resources, in realtime).

My idea is to build a program to monitor these activities (developed in C# to be more exactly). How can I do this?

Thanks

PS: I know that we already have commercial products to do this, but I need to develop one.

WHy not just use a trace and export it to whatever external app you want to review?

I usually create my traces using sp_**trace, then I've set up external apps to call the trace and view the results.

|||

The problem is...if I create some triggers and Stored Procedures, my program will have to stay selecting data for long cycles. I'd like to have something automated, so when something occurs, automatically my program understands it.

Must have a way to do this, because I think SQL Profiler wouldn't use SELECTs to get Performance and Counting info.

Monitoring database activities from outside SQL Server

Hi,

I want to know how can I monitor some operations that are executed on a SQL Server database. Operations like: INSERT, DELETE, UPDATE, transactions, and so on (I know that I can do this using triggers, but doing this way I'll have to fill a table with the information from the triggers and stay loading the table data all the time. I want a way to monitor using other resources, in realtime).

My idea is to build a program to monitor these activities (developed in C# to be more exactly). How can I do this?

Thanks

PS: I know that we already have commercial products to do this, but I need to develop one.

WHy not just use a trace and export it to whatever external app you want to review?

I usually create my traces using sp_**trace, then I've set up external apps to call the trace and view the results.

|||

The problem is...if I create some triggers and Stored Procedures, my program will have to stay selecting data for long cycles. I'd like to have something automated, so when something occurs, automatically my program understands it.

Must have a way to do this, because I think SQL Profiler wouldn't use SELECTs to get Performance and Counting info.

Monitoring

Hi ,
Is there a way/tool in Sql Server 2000 SP3 to
monitor all activities going on in the Database ?
For example, I first create an empty database.
Then I have an ERWIN generated DDL to create
all views and tables. After that, I have INSERT
scripts that populate all the base tables. What I
want to monitor is success or failure for each
script.

Thanks,
N.N (N@.N.COM) writes:
> Is there a way/tool in Sql Server 2000 SP3 to
> monitor all activities going on in the Database ?
> For example, I first create an empty database.
> Then I have an ERWIN generated DDL to create
> all views and tables. After that, I have INSERT
> scripts that populate all the base tables. What I
> want to monitor is success or failure for each
> script.

The tool you are looking for is the Profiler. Look in the SQL Server
program group.

However, to check the output from build scripts, I think it's best to
save the log, and then search the output for the string "Msg".

--
Erland Sommarskog, SQL Server MVP, sommar@.algonet.se

Books Online for SQL Server SP3 at
http://www.microsoft.com/sql/techin.../2000/books.asp|||"N" <N@.N.COM> wrote in message news:<17xUb.21778$_f.2385@.newssvr25.news.prodigy.com>...
> Hi ,
> Is there a way/tool in Sql Server 2000 SP3 to
> monitor all activities going on in the Database ?
> For example, I first create an empty database.
> Then I have an ERWIN generated DDL to create
> all views and tables. After that, I have INSERT
> scripts that populate all the base tables. What I
> want to monitor is success or failure for each
> script.
> Thanks,
> N.

You can use Profiler to view all SQL being sent to the database, but
it sounds like you want to add error handling to your scripts? How to
do that would depend how you run the scripts - eg. if you're using
osql, then -r might be useful. Perhaps if you can give some extra
information about how you call the scripts, and an example of the
code, then someone may be able to suggest something specific.

Simon

Monitor Table Activity

Dear All,
I want to Monitor a table or multiple table activities with the follwing
results.
1. Previous Value
2. New Value
3. Table Row Changed
Thanks in advanceHi,
You have write your own triggers for Insert and Update actions.
Thanks
Hari
MCDBA
"Syed Zulfiqar" <zulfiqar_syed@.hotmail.com> wrote in message
news:OB4LyN#FEHA.3188@.TK2MSFTNGP10.phx.gbl...
> Dear All,
> I want to Monitor a table or multiple table activities with the follwing
> results.
> 1. Previous Value
> 2. New Value
> 3. Table Row Changed
> Thanks in advance
>|||THere is also a tool that Lumigent makes which analyzes the T-Log, etc which
( I beleive) can do what you wish... Integra ( www.lumigent.com)
Wayne Snyder, MCDBA, SQL Server MVP
Computer Education Services Corporation (CESC), Charlotte, NC
www.computeredservices.com
(Please respond only to the newsgroups.)
I support the Professional Association of SQL Server (PASS) and it's
community of SQL Server professionals.
www.sqlpass.org
"Syed Zulfiqar" <zulfiqar_syed@.hotmail.com> wrote in message
news:OB4LyN%23FEHA.3188@.TK2MSFTNGP10.phx.gbl...
> Dear All,
> I want to Monitor a table or multiple table activities with the follwing
> results.
> 1. Previous Value
> 2. New Value
> 3. Table Row Changed
> Thanks in advance
>|||I have just been playing around with the demo if this software and it seems
really good. Certainly look slike it will save me the many hours of
building an audit trail into my application!
"Wayne Snyder" <wsnyder@.computeredservices.com> wrote in message
news:OmW4dk%23FEHA.576@.TK2MSFTNGP11.phx.gbl...
> THere is also a tool that Lumigent makes which analyzes the T-Log, etc
which
> ( I beleive) can do what you wish... Integra ( www.lumigent.com)
>
> --
> Wayne Snyder, MCDBA, SQL Server MVP
> Computer Education Services Corporation (CESC), Charlotte, NC
> www.computeredservices.com
> (Please respond only to the newsgroups.)
> I support the Professional Association of SQL Server (PASS) and it's
> community of SQL Server professionals.
> www.sqlpass.org
> "Syed Zulfiqar" <zulfiqar_syed@.hotmail.com> wrote in message
> news:OB4LyN%23FEHA.3188@.TK2MSFTNGP10.phx.gbl...
>

Monitor Table Activity

Dear All,
I want to Monitor a table or multiple table activities with the follwing
results.
1. Previous Value
2. New Value
3. Table Row Changed
Thanks in advance
Hi,
You have write your own triggers for Insert and Update actions.
Thanks
Hari
MCDBA
"Syed Zulfiqar" <zulfiqar_syed@.hotmail.com> wrote in message
news:OB4LyN#FEHA.3188@.TK2MSFTNGP10.phx.gbl...
> Dear All,
> I want to Monitor a table or multiple table activities with the follwing
> results.
> 1. Previous Value
> 2. New Value
> 3. Table Row Changed
> Thanks in advance
>
|||THere is also a tool that Lumigent makes which analyzes the T-Log, etc which
( I beleive) can do what you wish... Integra ( www.lumigent.com)
Wayne Snyder, MCDBA, SQL Server MVP
Computer Education Services Corporation (CESC), Charlotte, NC
www.computeredservices.com
(Please respond only to the newsgroups.)
I support the Professional Association of SQL Server (PASS) and it's
community of SQL Server professionals.
www.sqlpass.org
"Syed Zulfiqar" <zulfiqar_syed@.hotmail.com> wrote in message
news:OB4LyN%23FEHA.3188@.TK2MSFTNGP10.phx.gbl...
> Dear All,
> I want to Monitor a table or multiple table activities with the follwing
> results.
> 1. Previous Value
> 2. New Value
> 3. Table Row Changed
> Thanks in advance
>
|||I have just been playing around with the demo if this software and it seems
really good. Certainly look slike it will save me the many hours of
building an audit trail into my application!
"Wayne Snyder" <wsnyder@.computeredservices.com> wrote in message
news:OmW4dk%23FEHA.576@.TK2MSFTNGP11.phx.gbl...
> THere is also a tool that Lumigent makes which analyzes the T-Log, etc
which
> ( I beleive) can do what you wish... Integra ( www.lumigent.com)
>
> --
> Wayne Snyder, MCDBA, SQL Server MVP
> Computer Education Services Corporation (CESC), Charlotte, NC
> www.computeredservices.com
> (Please respond only to the newsgroups.)
> I support the Professional Association of SQL Server (PASS) and it's
> community of SQL Server professionals.
> www.sqlpass.org
> "Syed Zulfiqar" <zulfiqar_syed@.hotmail.com> wrote in message
> news:OB4LyN%23FEHA.3188@.TK2MSFTNGP10.phx.gbl...
>