How can I log all commands the clients are sending to database server? I wanna to "see" those commands to know how entity framework 4.0 is generating sqls and maybe try to change ling expressions. |
I use these Commands to enable request level logging as needed.
For more Options see sa-server-option-system-sysproc
With these commands you can switch on the logging from a iSQL Session before you press a Button in your Application. This make it possible to log only the interesting SQL code. |
I guess "Request logging" will do what you request. I would try
(and possibly the other -zr options as well). |
You can switch on SQL logging capability locally in client side (see ODBC connection properties, advanced tab). In that case you don't need to have any administrative access to db server, and can intercept and analyse sql generated only by your application. ...as long as the client is using ODBC (whereas in Zote's original case, I guess it's a native ADO.Net connection and therefore not using ODBC at all)...
(22 Jan '13, 07:26)
Volker Barth
|
Have you tried dbsrv11 -zr SQL -zo RLL.log already (and possibly the other -zr options)?
@Volker: If anything qualifies as an actual "answer" as opposed to a comment, your comment does... I think :)
@Breck: Who would dare to argue with the Administrator:) - The main reason for just commenting is my quite small own experience with RL. But you're right, this site should not suffer from too shy users.