Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

comment code in Profiler Trace in TextData Column

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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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…
When trying to connect from SSMS v17.x to a SQL Server Integration Services 2016 instance or previous version, you get the error “Connecting to the Integration Services service on the computer failed with the following error: 'The specified service …
Using examples as well as descriptions, and references to Books Online, show the documentation available for date manipulation functions and by using a select few of these functions, show how date based data can be manipulated with these functions.
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.

618 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