Solved

Performance problem with MSSQL 6.5, SP4

Posted on 1998-09-17
2
211 Views
Last Modified: 2012-05-04
I have a problem with a database of mine. In the database i have a table consisting currently of approx 30000 records.

The time it takes to access these records are slowly climbing making the application slower and slower, what is happening?.

This is the script generating the table:

set quoted_identifier on
GO

/****** Object:  Table dbo.SvarData    Script Date: 17-09-98 14:38:41 ******/
if exists (select * from sysobjects where id = object_id('dbo.SvarData') and sysstat & 0xf = 3)
      drop table "dbo"."SvarData"
GO

/****** Object:  Table dbo.SvarData    Script Date: 17-09-98 14:38:41 ******/
CREATE TABLE "dbo"."SvarData" (
      "SvarID" "int" IDENTITY (1, 1) NOT NULL ,
      "SkemaDataID" "int" NOT NULL ,
      "GroupDataID" "int" NOT NULL ,
      "Data" "text" NULL ,
      CONSTRAINT "PK___2__10" PRIMARY KEY  CLUSTERED
      (
            "SkemaDataID",
            "GroupDataID"
      )
)
GO

 CREATE  INDEX "SvarID" ON "dbo"."SvarData"("SvarID")
GO



Thanks for your time
0
Comment
Question by:cisDK
2 Comments
 
LVL 2

Accepted Solution

by:
formula earned 90 total points
ID: 1090144
Don't know what your query is but try this:
 "update statistics SvarData"
then rerun your query.  This will update index statistics for the table. You should do this often as your table grows.

   
0
 

Author Comment

by:cisDK
ID: 1090145
Your advice resulted in about 30% percent performance boost...
Good answer!
0

Featured Post

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

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

This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
The Delta outage: 650 cancelled flights, more than 1200 delayed flights, thousands of frustrated customers, tens of millions of dollars in damages – plus untold reputational damage to one of the world’s most trusted airlines. All due to a catastroph…
Via a live example combined with referencing Books Online, show some of the information that can be extracted from the Catalog Views in SQL Server.
Using examples as well as descriptions, and references to Books Online, show the documentation available for datatypes, explain the available data types and show how data can be passed into and out of variables.

930 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

18 Experts available now in Live!

Get 1:1 Help Now