Monday, March 12, 2012

query designer very slow loading tables

when i use the query designer and add tables it takes 15-30 mins to load a table....so if i need 6 tables in my query thats like 6 times 30 minute load times...i'm using oracle as my data source

when i switch the source to oledb it adds tables within seconds the only thing is i need to use named parameters

any ideas?

moldypenguins wrote:

when i use the query designer and add tables it takes 15-30 mins to load a table

You're saying it takes 15-30 minutes to drag and drop a table control onto the layout of query designer?

What is it exactly that is taking that long?

|||>>

when i switch the source to oledb it adds tables within seconds the only thing is i need to use named parameters

<<

Yes -- use oledb and find a way around the named parameters thing <g>. Tell us more about your query, maybe we can figure out something there.

Alternatively... what version of what type of connection are you using when you don't use OLEDB? I use Oracle stuff, maybe I can help or somebody else will spot what's wrong. (I'll be off-line shortly for about a week)

>L<

|||

it takes 15-30 minutes to load the table...ie i click the add table button, click a table and click add, then i wait

|||

Can you post a screenshot of where you are doing this?

If you can't then describe further. I'm not slow, it's just there are several places you could be designing a query.

Are you using SQL 2000? 2005? Is this in BIS? SQL Server Management Studio?

|||

sorry i'm using sql 2005 in bis, here is a screen shot

|||

How much RAM is in the PC that you are adding the table to query designer from? What is the processor speed? How about on the SQL server?

What is the network configuration like between the PC that you are using query designer and the SQL server? Is it the same machine?

Have you noticed slow load times in any other SQL application (such as Management Studio)?

|||

its not the pc because i have tried it on other computers in the office, server is open vms running orcle 9i

|||

Just because you have tried it on other computers and it does the same thing doesn't mean it's not the PC.

If they all have 256 mb of RAM in them then you could experience the same problem in all of them.

In my experience, slow load time = not enough hardware OR poor network setup OR antivirus interference.

|||

i have 512mb

and the other 2 have 2gb or more

and like i said it works quickly when i chose oledb but i need to keep named parameters|||

http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=324176&SiteID=1

here is someone else with the same problem!

|||

Given that the other post also uses the same Oracle connector (right/) I wonder if it is trying to re-use the connection for the same connection and the Oracle connector doesn't like that, the first use has to time out before it's possible. Sounds like a bug in the connector or the way it's being used -- no idea --

So I am going to ask again what I asked before <s>:

>>

when i switch the source to oledb it adds tables within seconds the only thing is i need to use named parameters

<<

Yes -- use oledb and find a way around the named parameters thing <g>. Tell us more about your query, maybe we can figure out something there.

I'm serious, let's give this a go.

>L<

|||the query doesn't matter because i don't even make it that far....its just when i'm loading the tables into the designer, it seems like it is taking long to link the databases or something, but when i use oledb it works super fast.....|||

Hi there,

Look: I'm not talking about "optimizing" your query, and I don't think your query is the problem.

But the query *does* matter. Because if you could change the query so you could use oledb on the query, then you would be using oledb to load the tables in the designer and your problem would go away <g>.

As I said before:

Given that the other post also uses the same Oracle connector (right/) I wonder if it is trying to re-use the connection for the same connection and the Oracle connector doesn't like that, the first use has to time out before it's possible. Sounds like a bug in the connector or the way it's being used -- no idea --

... and this is something we probably can't fix. So I'm going for something that we *can*. OK?

>L<

|||BTW -- http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2096059&SiteID=1

... please look at this thread, you may be using an unsupported connection method for the query designer. So if you want to speed up the QD loads, let's work at arranging your query so you can use the OLE DB driver, really I think it may be possible to get around the "named parameters" reason that you can't use the OLE DB driver in this case.


So describe what you're doing and we'll take a shot...

>L<

No comments:

Post a Comment