keyongtech


  keyongtech > sqlserver.* > sqlserver.programming > 11/2005

 #1  
11-07-05, 11:07 AM
Arif
I test my C# applicaiton both with Access and SQL Server database. I note
that the following code snippets takes 24-35 seconds with Access database
while takes only 2-3 seconds with SQL Server to fetch same number of records
(80,000 records).

//with Access Database
this.da = new OdbcDataAdapter("select Barcode, Description from
Items_Detail", DB.cn);

//with SQL Server
this.da = new SqlDataAdapter("select Barcode, Description from
Items_Detail", DB.cn);

//common code
this.da.Fill(this.ds, "Get_Quantity_Result");
grd_All_Recs.SetDataBinding(this.ds, "Get_Quantity_Result");


for my customer simplicity i want to give him solution with Access database
but with this un-acceptable delay i can't do this.

Please help in identifying that why it is taking much time to fetch records
from Access database.

Arif.
 #2  
11-07-05, 11:19 AM
ML
Why Access? Why not SQL 2005 Express or SQL 2000 MSDE?

SQL Express and MSDE are free with most benefits of regular SQL Server
editions.

http://msdn.microsoft.com/library/de...seoverview.asp

http://msdn.microsoft.com/library/de...ar_ts_67ax.asp


ML
 #3  
11-07-05, 11:46 AM
Arif
Dear ML,

with my simple application i want to embed Access database file in my setup
file for simplicity as my customer requested me.

can you tell me the reason of my problem. one of my friend told me that he
used Access database with his VB6 application having approximately same
number of records but the speed was good. But we can't find the problem that
in my case why it is taking time with Access database.

Arif.



"ML" wrote:
[..]
 #4  
11-07-05, 12:06 PM
ML
It's difficult to pin point the exact reason for such poor performance, yet
there are many reasons why not to use Access. :)

Especially in your case. You're designing a simple application, you say. I
guess you're also providing the front-end. That's exactly the typical
use-case involving MSDE or SQL Express.

As far as the performance question goes, maybe you can find some help in a
MS Access news group.


ML
 #5  
11-10-05, 08:35 AM
Arif
dear ML i got the idea from MS Access new group to try using OleDB Data
provider instead of ODBC data provider.

i implemented this idea and i get very good performace near to SQL Server.

arif.

"ML" wrote:
[..]
 #6  
11-10-05, 10:07 AM
ML
Yeah! That's the way to go.


ML
Similar Threads
Access takes 24-35 seconds while SQL Server takes only 2-3 seconds

I test my C# applicaiton both with Access and SQL Server database. I note that the following code snippets takes 24-35 seconds with Access database while takes only 2-3...

MC takes 10 to 15 seconds to start (also 20 seconds to go full scr

I get this fault in sistem info 15/06/2005 16:50 Application Error Faulting application wmplayer.exe, version 10.0.0.3646, faulting module unknown, version 0.0.0.0, fault...

Word takes 20 seconds to load and 15 seconds to unload. Why?

When I open programs and select Word, it takes a least 20 seconds or more before it is up and ready to start typing. When I close word, it takes at least 15 seconds to...

Word takes 20 seconds to start, Excel takes 1 second. Why?

See subject

First Connection to SQL Server 2000 is slow (takes 15 seconds)

I have a client machine running VS.Net 2003, using TCP/IP to connect to a server running SQL Server 2000 Developer. The first time I connect to the server it always takes 15...


All times are GMT. The time now is 11:16 AM. | Privacy Policy