Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6069493
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T09:49:42+00:00 2026-05-23T09:49:42+00:00

Where I work we use the SQL Profiler tool and I’ve to built trace

  • 0

Where I work we use the SQL Profiler tool and I’ve to built trace template to target just our application scripts on our local machines. However because the template targets our machine name using the HostName column the template can’t be shared without modifying it for each developer.

For example my machine name is cc-103 so in the Like clause for the HostName column filter I use that but this obviously won’t work for my colleagues with different machine names.

Is there a way for the filter to determine the machine name automatically so we all can share a generic filter without having to modify the filter to replace the HostName filter with our own machine name?

I have tried using T-SQL in the clause but it didn’t work:
e.g. Like “Select Host_Name()”

Any suggestions?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T09:49:42+00:00Added an answer on May 23, 2026 at 9:49 am

    no, there isn’t a way to do this in profiler. What you can do is script the template in T-SQL and run SQL Trace into a file and then opening that file in SQL Profiler or query it directly.

    you can script the trace template by starting and stoping the trace in profiler then go to:
    File->Export->Script Trace Definition

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I work for a ISV. Our product can use both SQL Server and Oracle
Traditionally, when we use SQL string to done some work, we have to close
At my work everyone has sql snippets that they use to answer questions. Some
Where I work we use a set schedule to build our applications. What is
I use Sql Server compact database, and my linq query work properly in debug
At work we use confluence . On occasion it crashes, resulting in an error
At work we use a common makefile that other makefiles include (via the include
At work we use a branching strategy where all changes start off in a
Does your work environment use Harvest SCM? I've used this now at two different
For personal projects I use Git for SCM, but at work we use TFS.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.