|
|
|
Valued Member
      
Group: General Forum Members
Last Login: Thursday, January 10, 2013 2:20 PM
Points: 60,
Visits: 223
|
|
Hello,
Tracing a process in Profiler, but, I found for an event:
SP:StmtStarting in the EventClass Valid SQL stmt exists in the TextData However, in the ObjectName column, there is no stored procedure name?
What is it refering to.
I have searched for this SQL in the stored procedures in our DB, but couldn't find it. So, how is this possible?
Thank you.
|
|
|
|
|
SSC-Enthusiastic
      
Group: General Forum Members
Last Login: Tuesday, May 07, 2013 12:40 PM
Points: 176,
Visits: 237
|
|
you should have an RPC:Completed event (assuming you are tracing it) after your event in question with the same SPID. That is the calling procedure.
-------------------------------------------------------------------------- When you realize you've dug yourself into a hole....Step 1...stop digging.
|
|
|
|
|
Valued Member
      
Group: General Forum Members
Last Login: Thursday, January 10, 2013 2:20 PM
Points: 60,
Visits: 223
|
|
ok...
It says: exec sp_executesql N'....
Does it mean a dynamic sql sent from the client instead of a stored proc...
thanks again
|
|
|
|
|
SSC-Enthusiastic
      
Group: General Forum Members
Last Login: Tuesday, May 07, 2013 12:40 PM
Points: 176,
Visits: 237
|
|
it does mean dynamic SQL. It can be in a stored procedure or the client, but since you searched the database I would say it is definitely the client.
-------------------------------------------------------------------------- When you realize you've dug yourself into a hole....Step 1...stop digging.
|
|
|
|
|
Valued Member
      
Group: General Forum Members
Last Login: Thursday, January 10, 2013 2:20 PM
Points: 60,
Visits: 223
|
|
| Great! Thank you so much.
|
|
|
|