Welcome to dbForumz.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Sql Profiler TextData exec sp_execute

 
   Database Forums (Home) -> Tools RSS
Next:  Log backup during full backup  
Author Message
MSUser

External


Since: Mar 22, 2010
Posts: 1



(Msg. 1) Posted: Mon Mar 22, 2010 9:58 am
Post subject: Sql Profiler TextData exec sp_execute
Archived from groups: microsoft>public>sqlserver>tools (more info?)

when textData is:

exec sp_execute <number> @xx=2222 @yy=3333

Is there a way to find the sql behind the sp_execute?

 >> Stay informed about: Sql Profiler TextData exec sp_execute 
Back to top
Login to vote
Erland Sommarskog2

External


Since: May 30, 2004
Posts: 1649



(Msg. 2) Posted: Mon Mar 22, 2010 6:25 pm
Post subject: Re: Sql Profiler TextData exec sp_execute [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

MSUser (MSUser@discussions.microsoft.com) writes:
> when textData is:
>
> exec sp_execute <number> @xx=2222 @yy=3333
>
> Is there a way to find the sql behind the sp_execute?

If there is an "sp_prepare" with the same number in the thread, there is.

If you include sql_handle in the trace, you look can up the text for the
cache entry. Or? No, you probably only get the call to sp_execute. Sad

I don't remember if you see the individual statements if you include
StmtCompleted, but I have a nagging feeling that you don't.


--
Erland Sommarskog, SQL Server MVP, esquel.RemoveThis@sommarskog.se

Links for SQL Server Books Online:
SQL 2008: http://msdn.microsoft.com/en-us/sqlserver/cc514207.aspx
SQL 2005: http://msdn.microsoft.com/en-us/sqlserver/bb895970.aspx
SQL 2000: http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx

 >> Stay informed about: Sql Profiler TextData exec sp_execute 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Filtering out blank TextData in Profiler - SQL Server 2000. When I set up a Profiler trace for SP:StatementCompleted events, and add a filter on TextData, e.g., "-- ProcName%", I get many events where the TextData is blank, or NULL. How can I filter those out? Thanks Vern

Need help with Sql Profiler - Hello I need to monitor creation/deletion/modification of objects in a database. I decided to use sql profiler with objects events auditing(create, delete) and TSQL events (SQL: STMstarting, SQL: batchstarting) for 'alter' statement. It's working, but..

Where as the SQL Profiler gone - Hi, I have installed the Sql2005 workgroup edition, and am looking to use the update profiler tool, which is a component I used a lot in 2000. The docs say its there, and shows how to start the Sql Profiler, but I do not have the options available to...

SQL Profiler 2000 - When i run the SQL Server Profiler 2000 using a non sysadmin fixed role, it state that only sysadmin allow to perform that function. In SQL Server 2005 Profiler, sysadmin allow to grant non sysadmin user to perform the same function via the GRANT ALTER...

Sql 2005 Profiler - I’ve been doing some time test between Sql 2000 sp3a and Sql 2005. Test Database Server = Server 1 It’s a dual 1800 AMD, 2 Gig or RAM Sql 2000 on the default instance Sql 2005 running on another instance Not running them both at the same time...
   Database Forums (Home) -> Tools All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]