Wrox Programmer Forums
|
SQL Server 2000 General discussion of Microsoft SQL Server -- for topics that don't fit in one of the more specific SQL Server forums. version 2000 only. There's a new forum for SQL Server 2005.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Server 2000 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 28th, 2006, 08:09 AM
Authorized User
 
Join Date: Oct 2006
Posts: 63
Thanks: 0
Thanked 0 Times in 0 Posts
Default Slow Query Execution

HI FRNDS,

          I have one database with 10 lacs records. But the problem is that when I am searching one particular data, it is taking few seconds to search. Is there any way to reduce this time???

Thanks in advance...


 
Old November 28th, 2006, 09:58 AM
Friend of Wrox
 
Join Date: Oct 2006
Posts: 475
Thanks: 0
Thanked 9 Times in 9 Posts
Default

We'll never know for sure unless you post the offending code, describe the table structure, and give us some information about what kind of indexes the table has.

In the meantime, make sure the table has a Primary Key (even if you just make an IDENTITY column for it) and the correct indexes to support your queries.

--Jeff Moden





Similar Threads
Thread Thread Starter Forum Replies Last Post
Execution Plan of a Query asuni SQL Server 2005 0 August 6th, 2008 03:42 AM
Select query execution rashi Access VBA 4 November 2nd, 2007 08:50 AM
Slow Query Execution prasanta2expert SQL Language 1 November 30th, 2006 07:35 AM
Query execution error chayanvinayak PHP Databases 0 May 3rd, 2006 05:30 AM
Slow Speed In Query Amanjain75 SQL Server 2000 1 December 12th, 2005 10:47 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.