Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
More on performance issue
Message
De
13/10/2008 11:49:42
 
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:
01354627
Vues:
16
>Not sure for NET, but when in VFP I use parameters in my queries VFP explicitly use sp_executesql to run this query.
>Just run SQL Profiler and see what command is send to SQL Server when you use parameters.

SQL Profiler always shows everything in sp_executesql mode. Does this mean this would be the optimized route to adopt? When I saw it in there, I adjusted my data class to support that approach. When I also tested that approach in SSMS, I found that it was a little bit faster. But, for now, in the data class, I have gone back to the SQLParameter object route using a native SQL command. I just wanted to make some verifications first to see what would be the best way to access the data from the SQLClient data provider in .NET.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform