What is the difference between trace and trace template in SQL Server?

What is the difference between trace and trace template in SQL Server?

What is the difference between trace and trace template? Is trace template mandatory for each trace? If yes, why?

    Requires Free Membership to View

    By submitting your registration information to SearchSQLServer.com you agree to receive email communications from TechTarget and TechTarget partners. We encourage you to read our Privacy Policy which contains important disclosures about how we collect and use your registration and other information. If you reside outside of the United States, by submitting this registration information you consent to having your personal data transferred to and processed in the United States. Your use of SearchSQLServer.com is governed by our Terms of Use. You may contact us at webmaster@TechTarget.com.

A trace is when you are monitoring SQL Server to gather the commands being executed against it. A trace template is the initial set of settings that SQL Profiler uses when it runs the trace. The SQL Profiler application requires a trace template so it knows the initial settings to select on the Event Selection tab.

This was first published in August 2007