Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Friday, November 22, 2024 
 
slxdeveloper.com Community Forums  
   
The Forums on slxdeveloper.com are now retired. The forum archive will remain available for the time being. Thank you for your participation on slxdeveloper.com!
 External Development Forums - SalesLogix OLEDB Provider
Forum to discuss using the SalesLogix OLE DB Provider from external applications (including usage of built-in provider procedures). View the code of conduct for posting guidelines.
Forums RSS Feed


 Back to Forum List | Back to SalesLogix OLEDB Provider | New ThreadView:  Search:  
 Author  Thread: ExcuteReader takes too much time to execute the command.
Ruchi
Posts: 19
 
ExcuteReader takes too much time to execute the command.Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 25 Jun 08 7:03 AM
Hi,
I m using "ExecuteReader". I have around 1000 records in the address table. when I do "cmd.ExecuteReader()" , it takes around 2 min to execute it. but it doesn't happen every time. sometime result come within a second.

Can any one help me in resolving this issue. this is my code :

string strAddressTableText = "select * from ADDRESS where 1=2";
OleDbCommand cmd = slxDBCon.CreateCommand();
cmd.CommandText = strAddressTableText;
OleDbDataReader reader = cmd.ExecuteReader();
ArrayList addressArray = new ArrayList();
for (int ctr = 0; ctr < reader.FieldCount; ctr++)
{
addressArray.Add(reader.GetName(ctr));
}

Thanks
Ruchi
[Reply][Quote]
 Page 1 of 1 
  You can subscribe to receive a daily forum digest in your user profile. View the site code of conduct for posting guidelines.

   Forum RSS Feed - Subscribe to the forum RSS feed to keep on top of the latest forum activity!
 

 
 slxdeveloper.com is brought to you courtesy of Ryan Farley & Customer FX Corporation.
 This site, and all contents herein, are Copyright © 2024 Customer FX Corporation. The information and opinions expressed here are not endorsed by Sage Software.

code of conduct | Subscribe to the slxdeveloper.com Latest Article RSS feed
   
 
page cache (param): 11/22/2024 9:50:22 PM