I don’t think you can say that there is such a thing as “client SQL”. There may be SQL commands / statements created by the client application, but they are executed directly in Database Enginer to save and register.
In other words, the client application can do this:
select * from SomeTable
If this is successful, then SELECT will be executed on the database server, and not on the client application, even if it was created.
Now you can try to determine where the SQL code is generated. The client application can generate the bulk of the data manipulation language (DML) code (i.e., INSERT/UPDATE/DELETE ) and perform OLAP ( SELECT ). The server will generate SQL and events for things like triggers. The database engine with the trigger will see that an action has been taken on the database, object, or server itself, and then this event will “trigger” the database engine to execute another part of the SQL code. This will be SQL Server Generation.
I think I understand your question, but please let me know if there is anything else or I did not answer correctly.
user596075
source share