Solved

SQL Question for 300 points

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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
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…

816 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now