[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 133
  • Last Modified:

SQL Question for 300 points

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
gencross
Asked:
gencross
  • 3
1 Solution
 
jackjeckylCommented:
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
 
gencrossAuthor Commented:
I'll check it out...thanks
0
 
PNJCommented:
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
 
gencrossAuthor Commented:
0
 
gencrossAuthor Commented:
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!

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now