MIDRANGE dot COM Mailing List Archive



Home » MIDRANGE-L » April 2008

Re: Index advisor advising index on primary key



fixed

No dice. It says it's an attempt to add a duplicate constraint.

I think I'll take Vern's advice and open a PMR. At least I'll learn something.

Jeff Crosby wrote:
Oooh. So if I did an ALTER TABLE and added a UNIQUE constraint on this file, that might do it?

Mark S. Waterbury wrote:
Hi, Jeff:

You said "primary key" but did not indicate whether this column has a "unique" constraint?

(I know that when you add a unique constraint to a table or file it creates an index (access path) under the covers.)

Mark

> Jeff Crosby wrote:
...(snip)...
On our item master file, it is advising that I create an index on field ITNBR. This file is an SQL table created via DDL (not DDS) and ITNBR is the primary key. Does this advice make sense? Why would it advise an index on the primary key?







Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2014 by MIDRANGE dot COM and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available here. If you have questions about this, please contact