SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Basic Auditing - SQL School Video


Basic Auditing - SQL School Video

Author
Message
Andy Warren
Andy Warren
SSChampion
SSChampion (11K reputation)SSChampion (11K reputation)SSChampion (11K reputation)SSChampion (11K reputation)SSChampion (11K reputation)SSChampion (11K reputation)SSChampion (11K reputation)SSChampion (11K reputation)

Group: Moderators
Points: 11985 Visits: 2730
Comments posted to this topic are about the item Basic Auditing - SQL School Video

Andy
SQLAndy - My Blog!
Connect with me on LinkedIn
Follow me on Twitter
Bradley Deem
Bradley Deem
Say Hey Kid
Say Hey Kid (673 reputation)Say Hey Kid (673 reputation)Say Hey Kid (673 reputation)Say Hey Kid (673 reputation)Say Hey Kid (673 reputation)Say Hey Kid (673 reputation)Say Hey Kid (673 reputation)Say Hey Kid (673 reputation)

Group: General Forum Members
Points: 673 Visits: 1248
I'm curious as to how the performance impact and usability of the trigger pattern is in comparison to the StartDate and EndDate column pattern where the most recent row has an EndDate of NULL. Then you use an indexed view over the table with a "where EndDate IS NULL" clause.

Anyone choose between the two and why?


I'm inclined to use the StartDate and EndDate pattern when tracking changes across all columns.


*** Edited for appreciation comment ***
Thank you for the video, well done!
SuperDBA-207096
SuperDBA-207096
SSCommitted
SSCommitted (2K reputation)SSCommitted (2K reputation)SSCommitted (2K reputation)SSCommitted (2K reputation)SSCommitted (2K reputation)SSCommitted (2K reputation)SSCommitted (2K reputation)SSCommitted (2K reputation)

Group: General Forum Members
Points: 1993 Visits: 711
Andy,
Well done! The pattern you used is similar to patterns I've used through the years, would like to see if there is a different implementation in SQL 2008? Maybe use CDC instead?

I guess CDC would have less of a performance impact than the trigger, and would be a simpler implementation?

Mark
Farhan Sabzaali
Farhan Sabzaali
SSC-Enthusiastic
SSC-Enthusiastic (103 reputation)SSC-Enthusiastic (103 reputation)SSC-Enthusiastic (103 reputation)SSC-Enthusiastic (103 reputation)SSC-Enthusiastic (103 reputation)SSC-Enthusiastic (103 reputation)SSC-Enthusiastic (103 reputation)SSC-Enthusiastic (103 reputation)

Group: General Forum Members
Points: 103 Visits: 152
I would like to see how this can be implemented in SQL 2008 - would you recommend using same method you shared or using the newly release feature of change control?

Farhan F. Sabzaali
PMP, MCP, MCDBA, MCSA, MCSE
harssd7
harssd7
Forum Newbie
Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)

Group: General Forum Members
Points: 1 Visits: 2
Hi guys,

I’ve tried to implement on SQL 2008 too, but it’s not happening. So I see where you are coming from Farhan. Andy thanks for the video, very helpful. One of the methods I found tricky is How do you track changes to data in your database. Could this be something to do with the design in my solution from the start? I was advised to apply some variety of direct access methods, but found myself going in circles. Can anyone recommend any books; I’m currently looking into one by Nigel Rivett. Doing the system administration exam (70-228) was a mission itself, by the way, has anyone in here ever experienced some anomalies with their PMP after updating SQL, what else can you do other than rerunning pmp401.exe or something??


Thanks in advance for your response.

MCSE exam | PMP certification
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search