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

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 Joins in Query vs. Stored Proc

Author  Topic 

jhilb
Starting Member

22 Posts

Posted - 2001-10-08 : 16:10:01
In query analyzer I have a query that runs in about 50 secs. About 11 tables joined together.

That same exact query, but in a stored proc, does not run (at least not in the first 5 min). If I pull out some of the joins it runs when I get the joins down to about 10.

Why would the query run in the query analyzer and not within a stored proc?



   

- Advertisement -