?
Solved

comment code in Profiler Trace in TextData Column

Posted on 2009-07-16
4
Medium Priority
?
205 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 2000 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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

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

The Delta outage: 650 cancelled flights, more than 1200 delayed flights, thousands of frustrated customers, tens of millions of dollars in damages – plus untold reputational damage to one of the world’s most trusted airlines. All due to a catastroph…
Recently we ran in to an issue while running some SQL jobs where we were trying to process the cubes.  We got an error saying failure stating 'NT SERVICE\SQLSERVERAGENT does not have access to Analysis Services. So this is a way to automate that wit…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Using examples as well as descriptions, and references to Books Online, show the different Recovery Models available in SQL Server and explain, as well as show how full, differential and transaction log backups are performed
Suggested Courses

765 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