Solved

comment code in Profiler Trace in TextData Column

Posted on 2009-07-16
4
199 Views
Last Modified: 2012-05-07
After Running profiler, all the text in TextData column seem to start with '--' prefix, which is the comment notation in t-SQL. For example, the following is one TextData element.

-- proc_SelectBenefitsForUser  SELECT  DISTINCT   --r.UserPK,   --r.Progress,   --k.TurnkeyPK,   vw_PayCode, s.[Place] --, z.Tag, b.Tag  FROM   dbo.tblBenefits

Some TextData's start with exec proc_name, without the '--'.

Is this ok? what exactly does it mean? Is there any significance to the '--'

Thanks
0
Comment
Question by:anushahanna
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 60

Accepted Solution

by:
chapmandew earned 500 total points
ID: 24872362
I wouldn't pay a lot of attention to the --.  Include the objectname column in the trace so you can see the name easier...use the code in the object to view it...not the textdata in profier.
0
 
LVL 6

Author Comment

by:anushahanna
ID: 24874271
I have the objectname option chosen, but I do not see the Objectname, but objectid in the destination table where I am storing the trace. How does the objectname get converted to objectid?
0
 
LVL 60

Expert Comment

by:chapmandew
ID: 24874770
It depends on the event whether or not the obj name shows...make sure it's checked when you define the trace.
0
 
LVL 6

Author Comment

by:anushahanna
ID: 24877191
yes, it is checked, but it shows as objectid. is there a system table where this objectid has to be converted to objectname?
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Ever wondered why sometimes your SQL Server is slow or unresponsive with connections spiking up but by the time you go in, all is well? The following article will show you how to install and configure a SQL job that will send you email alerts includ…
In part one, we reviewed the prerequisites required for installing SQL Server vNext. In this part we will explore how to install Microsoft's SQL Server on Ubuntu 16.04.
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
Using examples as well as descriptions, and references to Books Online, show the documentation available for datatypes, explain the available data types and show how data can be passed into and out of variables.

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question