Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
More on performance issue
Message
From
13/10/2008 11:49:42
 
General information
Forum:
Microsoft SQL Server
Category:
Other
Environment versions
SQL Server:
SQL Server 2005
Miscellaneous
Thread ID:
01354488
Message ID:
01354627
Views:
17
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform