Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How can quick execute sql using oledb in network drive d
Message
From
08/03/2012 22:46:39
 
 
To
08/03/2012 20:59:46
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Environment versions
Environment:
VB 9.0
OS:
Windows XP
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01537569
Message ID:
01537688
Views:
31
>Thank you for apply me first. Yes in the same network . I check the Realtek PCIe GBE status speed is 1.0 Gbps.
>And then i use break point to check my code where slow , i find connect open is no problem but execute sql is very slow.
>After i try to entry I:\Apos.DBF in start > run to open it in network speed is ok but if i execute basic sql , it will very slow.

The only time I use ExecuteScalar is from an insert command to get the primary key which was just created on the newly inserted record. I usually put the command into the dataadapter and using oDataAdapter.Fill(oDataSet) to fill the result into a dataset.

Were you able to obtain fast result using that approach on other SQL commands? If yes, have you tried to return only one record such as Where PrimaryKey=1. This will make sure it is not related to a SQL optimization. Make sure however that the primary key field is indexed. Otherwise, maybe the ExecuteScalar thing is a factor in the way it is used and I would then use the approach I recommand.
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
Next
Reply
Map
View

Click here to load this message in the networking platform