|
|
|
SSC Eights!
      
Group: General Forum Members
Last Login: Friday, February 15, 2013 10:33 AM
Points: 976,
Visits: 48
|
|
|
|
|
|
SSC Eights!
      
Group: General Forum Members
Last Login: Tuesday, July 31, 2007 8:20 AM
Points: 885,
Visits: 1
|
|
Hi
Only problem we had is where programmers with retrieving the identity of the inserted row, but they kept retrieving the audit tables identity column instead, so we had to remove this identity column from the audit table and rely on date/time and user combination (no p-key on the audit table). Have you experienced this before?
Also, TEXT columns can not be audited unless you use INSTEAD-OF triggers which is a right pain in the you know what.
Cheers
Chris
Chris Kempster www.chriskempster.com Author of "SQL Server Backup, Recovery & Troubleshooting" Author of "SQL Server 2k for the Oracle DBA"
|
|
|
|
|
SSCertifiable
       
Group: Moderators
Last Login: Thursday, May 09, 2013 12:38 PM
Points: 6,462,
Visits: 1,384
|
|
|
|
|
|
SSC Eights!
      
Group: General Forum Members
Last Login: Tuesday, July 31, 2007 8:20 AM
Points: 885,
Visits: 1
|
|
Hi Andy
Thanks Andy, also found an article on it and will give it a burl. Ill have to be more thorough in reading up on the new features.
Cheers
Chris
Chris Kempster www.chriskempster.com Author of "SQL Server Backup, Recovery & Troubleshooting" Author of "SQL Server 2k for the Oracle DBA"
|
|
|
|
|
SSC Eights!
      
Group: General Forum Members
Last Login: Friday, February 15, 2013 10:33 AM
Points: 976,
Visits: 48
|
|
I never had a problem with the identity columns. I think this is because we didn't use them a lot where I used to work (Telos Corporation).
Robert Marda
Robert W. Marda SQL Programmer Ipreo
|
|
|
|
|
SSC Veteran
      
Group: General Forum Members
Last Login: Thursday, March 15, 2007 9:22 AM
Points: 238,
Visits: 1
|
|
The only issue I have with this approach is it makes one assumption. Each user in the organization has a network sign on. Where I currently work (today is my last day) the network admin refuses to give everyone network signons. He knows at some point we have to have auditing of changes and I have told him this is the best approach. But he refuses to do so. Since the application we developed has unique signons for each user we could do something with that but it makes it harder. Having network signons is usually a good assumption to make but not always. Ross
|
|
|
|
|
Forum Newbie
      
Group: General Forum Members
Last Login: Tuesday, July 05, 2005 5:57 AM
Points: 1,
Visits: 1
|
|
I'm currently building a security administrator app and I have a process where when a user's info is updated, the permissions table is also updated. I send in the UserID that is doing the update into the stored procedure. My question is can the trigger read the "Updated By UserID" param or would I have to have a column in the UserInfo table get updated by the UserID param and then the trigger would get the UserInfo:Updated By UserID column? Thanks, Lucas
|
|
|
|