Solved

SQL Question for 300 points

Posted on 2002-06-13
5
130 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

Enroll in June's Course of the Month

June's Course of the Month is now available! Every 10 seconds, a consumer gets hit with ransomware. Refresh your knowledge of ransomware best practices by enrolling in this month's complimentary course for Premium Members, Team Accounts, and Qualified Experts.

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…
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

717 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