[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

Slow MSSQL vs. ACCESS in VB ADODB

Posted on 2006-06-13
7
Medium Priority
?
381 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
NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

 
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

Tech or Treat!

Submit an article about your scariest tech experience—and the solution—and you’ll be automatically entered to win one of 4 fantastic tech gadgets.

Question has a verified solution.

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

A Stored Procedure in Microsoft SQL Server is a powerful feature that it can be used to execute the Data Manipulation Language (DML) or Data Definition Language (DDL). Depending on business requirements, a single Stored Procedure can return differe…
Instead of error trapping or hard-coding for non-updateable fields when using QODBC, let VBA automatically disable them when forms open. This way, users can view but not change the data. Part 1 explained how to use schema tables to do this. Part 2 h…
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Suggested Courses

650 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