I am currently working on SQL Server 2014 and want to know that how can I examine the currently executing statement for each of the requests issued against my SQL Server instance?
2 Answers
SQL Server Profiler is a tool in SQL Server that lets you see what commands are processed by the server and other details. It shows all commands from all clients but you can filter them by a number of fields, including the "Application Name" field, but you need to specify it in your SQL Server client connection string.
e.g. Application Name=MyAppName;
Comments
As Dai said, you'll need to use SQL Server Profiler for this. Step by step instructions are available at this link: https://msdn.microsoft.com/en-us/library/ms175047(v=sql.120).aspx