The templates are pre-mapped for the fields noted in Method 2, so will save you some time from having to manually map the fields. To use a SQL Trace template, follow these steps:
1. Determine what version of SQL Server you have and double-click the link below to download the zip file of SQL templates. In the zip file, click on the TRACETMPL folder and double-click on the .tdf file for your version and SQL Profiler will automatically open. (Take note of the file name as this is the name for the template you will look for in SQL profiler.) Click Yes if prompted to overwrite. Then you should get a message that the tdf file was imported successfully. Click OK. (Or you can do a Save|Save As and go to that location on double-click on the tdf file.)
SQL 2005
SQL templates for versions 2008, 2008 R2, 2012, 2014, 2016, 2017, 2019 (zip file)
2. Within SQL Profiler, click on File | New Trace. (Connect or log in as prompted.)
a. In the Trace Properties window, enter a name for Trace Name as desired.
b. Click the drop-down icon next to the USE THE TEMPLATE field, and scroll down to the end of the list and select the SQL trace template you imported in. (Should beging with 'MSGP' prefix.)
c. Click to mark the SAVE TO FILE checkbox and browse to a location you would like to save the trace file to. Save.
d. Also uncheck
Enable File Rollover option (Under SAVE TO FILE section).
e. In the
Events Selection tab, mark the
SHOW ALL EVENTS checkbox and
SHOW ALL COLUMNS in the lower right corner.
Note: All the fields in Method 2 will automatically be selected in the Events Selection tab.
3. Click RUN to start the trace and the SQL Profiler window will open and the trace is now running. Use the icons listed below to help you capture the trace. Be sure to keep the trace file as small as possible and only capture the steps in Dynamics GP to reproduce the problem. Traces too large are often not efficient or helpful.
- use the Red Square icon at the top to stop the trace.
- Use the Green Arrow icon at the top to restart the trace. (This is enabled if the trace is stopped.)
- Use the White Eraser icon (looks like a piece of chalk) to clear out the trace at any time needed.
Note: The trace file should be created at the location selected above. Send this trace file to the Microsoft Engineer, along with the information of what version of SQL you are using, and the user ID you used when performing the steps in GP.