Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Performance problem with MSSQL 6.5, SP4

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

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…
Windocks is an independent port of Docker's open source to Windows.   This article introduces the use of SQL Server in containers, with integrated support of SQL Server database cloning.
Via a live example, show how to shrink a transaction log file down to a reasonable size.
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…

618 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