?
Solved

Slow MSSQL vs. ACCESS in VB ADODB

Posted on 2006-06-13
7
Medium Priority
?
380 Views
Last Modified: 2008-02-26
Help!

I have a vb app, that was running nice and smooth on an ACCESS database, using ADODB in code.

Now, I exported the tables, and moved it to an SQL database.

It's now running 5 - 10 times slower...

Pinging the server, and accessing it any other way on the network is just fine, it's only from accessing it within the VB app...

any thought?

I repeate... HELP!
0
Comment
Question by:shahzadq
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
  • 2
  • +1
7 Comments
 
LVL 3

Expert Comment

by:Titan522
ID: 16897627
What does your execution plan look like? Can you run a query in query analyzer can compare the results?
0
 
LVL 143

Expert Comment

by:Guy Hengel [angelIII / a3]
ID: 16897863
>It's now running 5 - 10 times slower...
this is NOT the problem of SQL Server itself, but ususally missing indexes.
0
 

Author Comment

by:shahzadq
ID: 16898128
YEah, Query Analyzer is pulling them up just great.

Hmm ...   Indexes...  let me check something on that...  But wouldn't that also slow down Query Analyzer?
0
Get MySQL database support online, now!

At Percona’s web store you can order your MySQL database support needs in minutes. No hassles, no fuss, just pick and click. Pay online with a credit card.

 
LVL 143

Assisted Solution

by:Guy Hengel [angelIII / a3]
Guy Hengel [angelIII / a3] earned 600 total points
ID: 16899771
what network protocols are available for sql server (check the sql server network utility on the server, and the sql server client network utility on the client).
if the default is named pipes, change it to tcp/ip. possible disalbe named pipes completely if not needed
0
 
LVL 25

Accepted Solution

by:
SStory earned 600 total points
ID: 16903425
Well are you using the SQL Server specific connection?  is the vb.net?  If so SQLclient works faster than OLEDB.

Connecting with the SQL specific connection lets SQL use Tabular Data Streaming (I think it is called).  This is a native format and makes it faster.

Of course if indexes aren't set, things will not be as fast as the could be.  Also if the query need improving it could slow things down.

Syntax between Access and SQL Server does differ some.

HTH,

Shane
0
 

Author Comment

by:shahzadq
ID: 16904810
OK, I think I'm at the best I can get

Your comments make sense...

The SQL database is poorly written (Hey, it was already setup when I got here).

But yes, I am using a specific connections string...  no it's not .Net,  I will check on the names pipes thing.

But I think the problem may simply be the machine it's running on.  Just too old.

Shahzad
0
 
LVL 25

Expert Comment

by:SStory
ID: 16905615
TCP/IP protocol would be better.
0

Featured Post

Get MongoDB database support online, now!

At Percona’s web store you can order your MongoDB database support needs in minutes. No hassles, no fuss, just pick and click. Pay online with a credit card. Handle your MongoDB database support now!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this article, I’ll look at how you can use a backup to start a secondary instance for MongoDB.
In this article, we’ll look at how to deploy ProxySQL.
This is a high-level webinar that covers the history of enterprise open source database use. It addresses both the advantages companies see in using open source database technologies, as well as the fears and reservations they might have. In this…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question