Hi Experts,
I have a question regarding SQL Server.
In our environment, users sometimes execute backend SQL queries (such as UPDATE statements) directly against the database to modify data.
I would like to know:
I would appreciate your guidance on the available methods and best practices for tracking backend database modifications.
Thank you.
Request clarification before answering.
Hi,
try to find out, if your Users do these Update via SAP B1 Query-Manager.
here is a authorization where you can block it for all non administratiors
to log these Queries:
--> System ini
--> General Settings
--> Services
if is active, you can try CGEV = Event Log
select * FROM dbo.[CGEV]Attention: please try with care... Due to the massive amount of data (each query execution is logged)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Are the update queries executed directly in SAP Business One or in SQL Server Management Studio? If in SAP Business One, then there is a standard solution available.
If the checkbox is selected in the General Settings (Enable Execution Audit Log for User-Defined Query or Query Generator), SAP logs all queries executed by users in table CGEV.
You can then search for UPDATE queries using the following query:
SELECT * from CGEV
WHERE EventDetls like '%update %'
Here you can see who ran this query and when.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.