简体   繁体   中英

In SQL Server, how do I capture all external transactions?

My management has asked me to create a new SSRS Report , that will show how many calls to my SQL Server 2016 . They want to know:

  1. How many external transactions were called to each database?
  2. What is the daily count of the external calls?
  3. What was the longest (slowest) external transaction?

Note, they do Not want to see how many internal SQL transactions are happening.

As a clarification, say you have a website that calls data from SQL Server. he wants to know when the web server makes a call to the SQL Server, then when the SQL Server responded. This is what is being called an external transaction. We have maybe a dozen different app servers that I need to capture this data from.

Check out the SQL Server Profiler. You can set it to run against specific usernames, assuming these external logins have distinct usernames it should be able to give you everything you wish.

https://docs.microsoft.com/en-us/sql/tools/sql-server-profiler/sql-server-profiler?view=sql-server-ver15

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM