Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
More on performance issue
Message
 
 
À
13/10/2008 02:42:47
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Autre
Versions des environnements
SQL Server:
SQL Server 2005
Divers
Thread ID:
01354488
Message ID:
01354538
Vues:
18
>After having done more research on this, I found that even with using a "exec sp_executesql" approach for all data accesses at the framework level, it was not changing anything in regards to that specific situation. So, I put back OPTION (RECOMPILE) and it resolved the issue. So, either with native a SQL command or from a stored procedure approach, both had the same problem and both were ok with the OPTION (RECOMPILE).

The sp_executesql helps SQL Server to reuse cached execution plans because it clearly separates a query and its parameters.
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform