Solved

Performance problem with MSSQL 6.5, SP4

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

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

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…
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
Viewers will learn how to use the UPDATE and DELETE statements to change or remove existing data from their tables. Make a table: Update a specific column given a specific row using the UPDATE statement: Remove a set of values using the DELETE s…

707 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