DATA Step, Macro, Functions and more

SAS Audit Trail

Reply
Contributor
Posts: 22

SAS Audit Trail

I wonder if i can apply sas audit trail on MSSQL Data table, i have tried to intiate but fail with error message "ERROR: The HEADER/VARIABLE UPDATE function is not supported by the ODBC engine", does anyone ever done this before?

Please shed me some light ! Thanks in advance.
Contributor
Posts: 22

Re: SAS Audit Trail

I might ask the question in another way, for using SAS EG 4.3 with MSSQL which audit trail approach should i take? I have basically test with about 3 approaches..namely
1. SAS Audit trail - fail with error mentioned
2. MSSQL Audit built-in feature (Audit trail log not gd as SAS one; Only can record DML action if submitting with sql statement, if direct edit from dataview of SAS EG the statement capture was filled with parameter which cannot trace the value before/after updating. )
3. Build MSSQL trigger for each table require auditing, so far this is the best but many self maintaining work need to be done.

Any has other suggestions?
Super User
Posts: 5,260

Re: SAS Audit Trail

SAS Audit only works on tables stored in a Base SAS library.
If your data needs to be stored in MSSQL, I suggest that you discuss this issue with the MSSQL DBA.

/Linus
Data never sleeps
Contributor
Posts: 22

Re: SAS Audit Trail

Thx for your confirmation Linus! Then i will concentrate on my trigger development
Ask a Question
Discussion stats
  • 3 replies
  • 196 views
  • 0 likes
  • 2 in conversation