Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SP takes longer than batch version
Message
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Stored procedures, Triggers, UDFs
Versions des environnements
SQL Server:
SQL Server 2000
Divers
Thread ID:
01090888
Message ID:
01090921
Vues:
14
The new info is from the SP...The batch uses a DIFFERENT plan. An index seek on the index I had set up.

Identical params and tables. In fact, the SP is identical to the batch with the exception of the Declares for variables used as params. That's why this is weird.

>>New info:
>>
>>According to the execution plan it is performing a clustered index scan on the DB tables and returns ALL of them. This is my bottleneck apparently. Should I use a join hint or some other mechanism?
>
>Are you running SP and batch against the same data?
State of Florida, DCF
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform