I'm creating a new table in SQL Server 2005 that needs 2 fields: DateTime and MyValue (Int32). The DateTime field will be unique so I will be setting a unique constraint on it.
Which table structure is better and why?
MyIndex (PK, int)
MyDate (datetime) (IX_UniqueKey)
MyValue (int)
or
MyDate (PK, datetime)
MyValue (int)
My feeling is that I don't want an artificial PK (MyIndex) in this table because it is unnecessary and because the dates will be unique I will use them to access any record. However, it may be that it's more performant to have an artificial PK...?