SQL Server Profiler

Source: Internet
Author: User

We often use SQL Server Profiler when tuning SQL statements or sp. however, SQL Server Profiler displays all information connected to the database by default. If you enable it together, it will be messy. in fact, you can use the filter function to filter the information you need. The following shows how to filter hostname to filter the local information so that SQL Server Profiler can only display the information we run.

Step 1: First open SQL Server Profiler through the menu (off site: Isn't that nonsense ?)

 

Step 2: Enter the connected dB information.

 

Step 3: Select the "events selection" page in the open trace Properties window, check "show all columns" below, and select the "hostname" column:

 

Step 4: Click the column header of "hostname" or the "column filters" button below to bring up the "Edit filter" dialog box, where "hostname" is selected ", enter your computer name in "like" in the lower right corner. if you do not know the computer name, you can view it on the "my computer"-> right-click "properties"-> "computer name" page.

 

Step 5: Haha, it's successful!

 

The filter function can be used to filter more conditions. Let's take a look!

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.