Magy (11/26/2008)
Gail, I'm in SQL profiler, and I ran it while executing the stored proc. Is there anything I should be looking for besides stmtCompleted? I see a bunch of queries, but I am not sure how to debug using this.
That's going to show you exactly what executes within the proc, so you will be able to see the IF EXISTS statement execute. If the two updates are running then you'll see those as well straight after the if exists.
Basically it's just showing you exactly what happens when you run the proc from the ASP page. Make sure that you're only seeing your own executions, otherwise it'll get near impossible to track anything.
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
We walk in the dark places no others will enter
We stand on the bridge and no one may pass