Fire triggers on SELECT
12,878
There are only two ways I know that you can do this and neither are trigger.
- You can use a stored procedure to run the query and log the query to a table and other information you'd like to know.
- You can use the audit feature of SQL Server.
I've never used the latter, so I can't speak of the ease of use.
Author by
chamara
ASP.NET, ASP.NET MVC , Sql Server, Bootstrap, CSS and Crystal reports developer
Updated on June 28, 2022Comments
-
chamara almost 2 years
I'm new to triggers and I need to fire a trigger when selecting values from a database table in sql server. I have tried firing triggers on insert/update and delete. is there any way to fire trigger when selecting values?