Solved

How to resolve performance issues on SQL 2000

Posted on 2011-09-26
5
231 Views
Last Modified: 2012-05-12
Hi Experts,

I wrote a stored procedure to retrieve lots of data say from around few millions database records. I have use all the optimizations such as use of temp table, indexes etc... though the peformance improved but still we want performance to increase. What are my options?

a)  Without Migrating to SQL 2005, can we use the features of 2005 for the speed, i understand this is a silly question but something like writing that proc in 2005 calling from 2000 etc etc...

b) Any other options i have? Without doing any big change.

Any suggestion will be highly appreciated.
Regards,
Rithesh
0
Comment
Question by:Star79
[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
5 Comments
 
LVL 4

Expert Comment

by:anandarajpandian
ID: 36707541
Hi Star,

Can you use Table variable instead of Temp table, and using profiler for checking which code it's taking long time,and try to avoid left and right outer join.

Regards
anand
0
 
LVL 37

Expert Comment

by:Neil Russell
ID: 36707647
First optimization most people overlook is the hardware.

What is the server spec of the machine this is running on?
How many processors? How many cores?
How much memory?
What Raid type? How big? How many disks?
0
 
LVL 5

Expert Comment

by:GirardAndrew
ID: 36708309
I encountered this similar issue and what we did was to use pagination wherein you only retrieve a certain range of data and display a portion of that. Basically, this is similar to Gmail. You will notice that when you do search that matches a lot of emails, it will only retrieve and load up to a certain point and display something like "Page 1 of hundreds".

I hope this will help you too.
0
 
LVL 8

Expert Comment

by:vinurajr
ID: 36708478
what is the current execution time and what is the process u are doing in the SP?
0
 
LVL 50

Accepted Solution

by:
Lowfatspread earned 500 total points
ID: 36709380
a) no

b) you need to tell us more about the process... show us the stored procedure ideally

    if you have it indexed correctly and have already tuned it  then we need to understand the process to be able to comment
   on your remaining possibilities...

    e.g. have you used index views...

   we also need to understand your hardware / data placement architecture and what the options maybe...

   what else is running on the server/database
   is this process a one-off, infrequently run, running all the time...

   does it actually need to consider/process the millions of records?
0

Featured Post

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

A Stored Procedure in Microsoft SQL Server is a powerful feature that it can be used to execute the Data Manipulation Language (DML) or Data Definition Language (DDL). Depending on business requirements, a single Stored Procedure can return differe…
Recently we ran in to an issue while running some SQL jobs where we were trying to process the cubes.  We got an error saying failure stating 'NT SERVICE\SQLSERVERAGENT does not have access to Analysis Services. So this is a way to automate that wit…
Via a live example, show how to extract insert data into a SQL Server database table using the Import/Export option and Bulk Insert.
Via a live example, show how to backup a database, simulate a failure backup the tail of the database transaction log and perform the restore.

628 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