Solved

Performance problem with MSSQL 6.5, SP4

Posted on 1998-09-17
2
200 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

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

Suggested Solutions

Title # Comments Views Activity
Restore Procedure question 4 31
Server 2008 Cluster Fail-over Errors 5 51
Recurring Excel Timelime for Veeam 2 37
Test a query 23 19
Performance is the key factor for any successful data integration project, knowing the type of transformation that you’re using is the first step on optimizing the SSIS flow performance, by utilizing the correct transformation or the design alternat…
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.
Viewers will learn how the fundamental information of how to create a table.
Viewers will learn how to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.

746 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

11 Experts available now in Live!

Get 1:1 Help Now