ado.net - Intercept/Log all database calls to SQL Server from a .Net Assembly -
Is there a way to block / log all database calls from a netset. The primary purpose is to prepare all TSQL statements and send any buses from the logic layer assembly to the SQL Server database. This system should be available globally and should not be implemented in each assembly. This mechanism should be contrary to SQL Profiler, it should be provided with stack trace which generates SQL statement.
The purpose of such a mechanism is to log all the SQL statements generated from an application and apply some analysis about it. This question is in relation to ADO.net technology.
Take a look at what the application query creates is capable of logging all queries regardless of the database .
Comments
Post a Comment