Solved

SQL Question for 300 points

Posted on 2002-06-13
5
124 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
Comment Utility
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
Comment Utility
I'll check it out...thanks
0
 
LVL 3

Accepted Solution

by:
PNJ earned 100 total points
Comment Utility
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
Comment Utility
0
 
LVL 4

Author Comment

by:gencross
Comment Utility
Thank you for the advice.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

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…
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
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…

763 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

12 Experts available now in Live!

Get 1:1 Help Now