PC Review


Reply
Thread Tools Rate Thread

dataadapter.fill slow

 
 
incolsa@leveltelecom.es
Guest
Posts: n/a
 
      26th Jun 2006
When i try to fill, it takes about 25 seconds, and the sql sentence in
the analyzer only takes 1 sec.

The sentence returns 60 rows and 32 columns

sda.Fill(ds,"alojamientos");
tabla = ds.Tables["alojamientos"];

Anyone has the same problem ?

thanks

 
Reply With Quote
 
 
 
 
=?Utf-8?B?UGV0ZXIgQnJvbWJlcmcgW0MjIE1WUF0=?=
Guest
Posts: n/a
 
      26th Jun 2006
Can you post a more complete sample? include all the code necessary to set up
a connection and execute the query. What is the Database- SQL Server, or some
other?
Peter
--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com




"(E-Mail Removed)" wrote:

> When i try to fill, it takes about 25 seconds, and the sql sentence in
> the analyzer only takes 1 sec.
>
> The sentence returns 60 rows and 32 columns
>
> sda.Fill(ds,"alojamientos");
> tabla = ds.Tables["alojamientos"];
>
> Anyone has the same problem ?
>
> thanks
>
>

 
Reply With Quote
 
Marc Gravell
Guest
Posts: n/a
 
      26th Jun 2006
Well, nothing as specific as this (hard to tell without much code), but yes:
I have seen queries that take 1 second actually take 30+ seconds in the app;
typically this was (after much searching) due to subtly different settings
between the analyzer and the actual code - for instance:
* ansi settings
* isolation level (OK, quite a biggie...)
* rowcount on/off
* parallelism

etc. You may be suprised what some of these will do to a query-plan. I have
even traced one down to an innocuous, simple SELECT statement that crippled
the server when part of a bigger SQL query *under this type of callinng*
(but not from the analyzer); moving it to a dedicated SP and calling EXEC to
run it solved it. Still to this day I don't know why.

Just some thoughts...

Marc


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
DataAdapter.Fill very slow with SqlParameters? Jonas Knaus Microsoft ADO .NET 2 5th Mar 2007 03:32 PM
Using DataAdapter.Fill() Micus Microsoft ADO .NET 4 24th Oct 2006 09:23 PM
Why not need ref when dataAdapter.Fill ad Microsoft C# .NET 3 7th Feb 2006 07:19 AM
Slow Fill method of DataAdapter class Radovan Radic Microsoft C# .NET 6 8th Jul 2004 08:10 AM
DataAdapter.Fill very slow lance Microsoft ADO .NET 6 21st Nov 2003 08:01 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:29 AM.