Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 keys and index's

Author  Topic 

Ex
Posting Yak Master

166 Posts

Posted - 2005-01-09 : 17:20:22
hey all
just wondering what my best option here would be

i have a table
that at the moment has

value1, value2, value3, value4, value5, value6
where value1 is a Identity Col
i have had
value2
value3
value4
value5
as a combind PK

i need these 4 values to be unique

and i shall be doing alot of joins using the identity column(value1)

just wondering what i can do for efficency in reguards to indexes? clustered noncluserted? on the identity ? etc? any ideas

nr
SQLTeam MVY

12543 Posts

Posted - 2005-01-09 : 17:27:04
A clustered index on the identity will save space but it might be more useful elsewhere.
An identity always needs an unique index if you want it to be unique.

==========================================
Cursors are useful if you don't know sql.
DTS can be used in a similar way.
Beer is not cold and it isn't fizzy.
Go to Top of Page
   

- Advertisement -