Discussion on:

5
Comments

Join the conversation!

Follow via:
RSS
Email Alert
-1 Votes
+ -
Question
ITEngineerGuy 17th Apr 2007
Is there a way to tell when the last time a DB has been accessed by using a query, sp, etc? I do not want to browse the log files of over 82 databases.

Thanks in advance
Great piece!

Ok, so this raises the question "How does one generate a list of changed columns wit their column name, original value and new value?"
well i have a kind of different requirement if you could please suggest. i need to save the complete record as it was before any DML operation. I am making a history table for all the tables having the same schema but two additional fields having update on (date) and udated by (user id) and i need to insert the data in history table for each record updated in any table in the respective history table. thanks
This solution works great. The problem I'm having is reading the UpdatedColumns field in the SalesHistoryAudit table. For example this what I have stored in that field.

I've been trying everything to read that xml data but all I can get it to do is return null or blank. Do es anybody have any suggestions.
i have aretail database we maintain sale as sales persan wise ,but it showing wrongly report ,how i can solve this problem
Keyboard Shortcuts:
Prev
Next
Toggle
Join the conversation
Formatting +
BB Codes - Note: HTML is not supported in forums
  • [b] Bold [/b]
  • [i] Italic [/i]
  • [u] Underline [/u]
  • [s] Strikethrough [/s]
  • [q] "Quote" [/q]
  • [ol][*] 1. Ordered List [/ol]
  • [ul][*] · Unordered List [/ul]
  • [pre] Preformat [/pre]
  • [quote] "Blockquote" [/quote]

Join the TechRepublic Community and join the conversation! Signing-up is free and quick, Do it now, we want to hear your opinion.