Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

monitoring a table Expand / Collapse
Author
Message
Posted Saturday, March 30, 2013 5:33 AM
Valued Member

Valued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued Member

Group: General Forum Members
Last Login: Tuesday, July 15, 2014 3:08 AM
Points: 68, Visits: 409
I want to monitor a table continuously to see whether its updating or not if its updated i want too know how many rows it update and i wan to store them in a table
time updated, no of rows
Post #1437194
Posted Saturday, March 30, 2013 12:47 PM
UDP Broadcaster

UDP BroadcasterUDP BroadcasterUDP BroadcasterUDP BroadcasterUDP BroadcasterUDP BroadcasterUDP BroadcasterUDP Broadcaster

Group: General Forum Members
Last Login: Wednesday, August 13, 2014 12:03 PM
Points: 1,480, Visits: 1,028
Sounds like you need a history table.

Check this out

http://database-programmer.blogspot.com/2008/07/history-tables.html
Post #1437222
Posted Saturday, March 30, 2013 1:25 PM


SSC-Dedicated

SSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-Dedicated

Group: General Forum Members
Last Login: Yesterday @ 3:51 PM
Points: 36,959, Visits: 31,469
gurjer48 (3/30/2013)
I want to monitor a table continuously to see whether its updating or not if its updated i want too know how many rows it update and i wan to store them in a table
time updated, no of rows


Do you want to store the actual data for the rows that are updated or do you just want to store the number of rows that got updated and when? Either way, the use of a well written, set-based trigger will do the job quite nicely.


--Jeff Moden
"RBAR is pronounced "ree-bar" and is a "Modenism" for "Row-By-Agonizing-Row".

First step towards the paradigm shift of writing Set Based code:
Stop thinking about what you want to do to a row... think, instead, of what you want to do to a column."

(play on words) "Just because you CAN do something in T-SQL, doesn't mean you SHOULDN'T." --22 Aug 2013

Helpful Links:
How to post code problems
How to post performance problems
Post #1437231
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse