?
Solved

Performance problem with MSSQL 6.5, SP4

Posted on 1998-09-17
2
Medium Priority
?
257 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 360 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

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!

Question has a verified solution.

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

I have a large data set and a SSIS package. How can I load this file in multi threading?
In part one, we reviewed the prerequisites required for installing SQL Server vNext. In this part we will explore how to install Microsoft's SQL Server on Ubuntu 16.04.
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.
Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.
Suggested Courses

749 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