Please start any new threads on our new site at http://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 Duplicate SP calls in Profiler using ADO
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

AskSQLTeam
Ask SQLTeam Question

USA
0 Posts

Posted - 06/05/2002 :  09:40:49  Show Profile  Visit AskSQLTeam's Homepage  Reply with Quote
John writes "Hello -

SQL 2000, SP 2

---- QUESTION

When using ADO, why does SQL Profiler report calls to stored procedures within stored procedures with the same command as the first stored procedure call, but only when using ADO Parameter objects. When using a SQL string pass-through method, Profiler reports the calls correctly. This behavior as been verified in ADO 2.6, 2.7, and .NET.

----

I have posted this question to various MS newsgroups over the last few weeks, and I have yet to receive a response with an answer or a work-around. Even Brian Moran chimed in a requesting a .trc file, but hasn't responded since.

I have a zip file containing files necessare to quickly duplicate this problem. Do you want it?

Thanks,
John

johnb@intercomm.com
johnb@bigfootsoftware.com"

robvolk
Most Valuable Yak

USA
15732 Posts

Posted - 06/05/2002 :  09:42:49  Show Profile  Visit robvolk's Homepage  Reply with Quote
$20 says you're using the Parameters.Refresh method, right? In order for it to refresh the parameters, it has to call the procedure. That's why you see the extra calls in the trace, and why the dynamic/constructed SQL method doesn't generate them.

Go to Top of Page
  Previous Topic Topic Next Topic  
 Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.04 seconds. Powered By: Snitz Forums 2000