Home
About
Search
Welcome to M-Files Empower – our new support experience. We'd love to hear what you think!Give feedback

Last updated on 28 December 2021

Admin
Connections to External Databases (Integrated)

Overview

Troubleshooting some customer issues might benefit from using the SQL Server Profiler tool, which is a graphical interface to create and manage traces and analyze and replay trace results. This article describes how to start the tool and it has also short instructions of using it. SQL Server Profiler can be used for:

  • Stepping through problem queries to find the cause of the problem.
  • Finding and diagnosing slow-running queries.
  • Capturing the series of Transact-SQL statements that lead to a problem. The saved trace can then be used to replicate the problem on a test server where the problem can be diagnosed.
  • Monitoring the performance of SQL Server to tune workloads.
  • Correlating performance counters to diagnose problems.

Instructions

You can launch the SQL Server Profiler within SQL Server Management Studio. It can be found from the "Tools" menu. 

Another way to launch the tool is to navigate to it (or use search) via Windows Start menu.

When you open the tool, an authentication form is shown. Select or browse the correct database server name and select the correct authentication type and enter the credentials if necessary.

When the connection is established, a new trace form is shown. In this form, there are two tabs: General and Events Selection. 

In the General tab, you can enter the trace name. Then you can select whether you need to save the trace results into a table or external file and if you need to pause the trace at a specific date-time. If you don't check any of the boxes of this tab, you will see the database events within the SQL Server Profiler window. 

In the Events Selection tab, you can select all events that you need to include in the trace. Consider filtering the trace (Events Selection tab > Column Filters…) by ApplicationName=M-Files or, in case you have multiple M-Files vaults with default basic user credentials set, LoginName=mfserver {certain vault GUID}.

SQL Server Profiler can be used to detect what are the commands executed by an application over a database for security and tuning purposes. You can find more detailed information from the Microsoft documentation: SQL Server Profiler.

Note

Even though SQL Server Profiler tool is deprecated, and it will be removed in a future version of Microsoft SQL Server, most environments can still utilize the tool as long as it is available. 

Still need help?