Solved

SQL Question for 300 points

Posted on 2002-06-13
5
128 Views
Last Modified: 2010-05-02
The question is posted here.  

http://www.experts-exchange.com/jsp/qManageQuestion.jsp?ta=mssql&qid=20311196

No one seems to be commenting.  If anyone has any ideas please respond.  The question is worth 200 points, plus the 100 for this question.
0
Comment
Question by:gencross
[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
  • 3
5 Comments
 

Expert Comment

by:jackjeckyl
ID: 7076736
I put an answer on the original question, but wanted to add one thing.  Make sure there is no applications running on the server with the database.  Although there may be plenty of memory, there have been known issues with SQL Server when applications are ran on the same server.  
0
 
LVL 4

Author Comment

by:gencross
ID: 7078036
I'll check it out...thanks
0
 
LVL 3

Accepted Solution

by:
PNJ earned 100 total points
ID: 7089025
I use Oracle mainly, but I'm assuming that the same things happen on SQL 6.5. I can only give pointers to several things:

1. As Admin, Can you identify the particular pieces of SQL that are causing the most CPU time / disk usage? Monitor the top "rogue" pieces of SQL and catch them. Then do an execution plan to determine if the SQL is doing full table scan(s). If they are then you have to tune each SQL statement to use Indexes, or if that's not possible, modify the table(s) to add indexes.

We spent a long time with our code "fine tuning" the SQL statements, and now as a matter of course, our developers do execution plans on ALL SQL before issuing the programs. Eventually, the crap SQL will get filtered out and fixed. This has made a BIG difference on our system.

2. Do you have logging for, say logging on users? If the log files are huge, the system spends ages going to the end just to add a record. Clean 'em up on a regular basis.

3. DON'T ALLOW PEOPLE TO USE ACCESS via ODBC to the database to write their own queries. Access is manic and doesn't write good SQL. Also, people are very good at writing queries that do full table scans without knowing it - and they don't care either. If someone has a need on a regular basis to get data out, get someone to write the query using Excel or VB.
0
 
LVL 4

Author Comment

by:gencross
ID: 7089995
0
 
LVL 4

Author Comment

by:gencross
ID: 7092619
Thank you for the advice.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

730 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