I have table called tblReports.
Fields: 1) ReportNum (int Identity field)(Clustered Index)
2) Date (datetime)
3) etc....
I have a 2nd table called tblReportDetails.
Fields: 1) Autos (int, which is the identity field)
2) ReportNum (foreign key to tblReports)
The above is essentially a Master / Detail relation.
tblReports has Clustered Index ReportNum
Sql server 2000 automatically added Autos from tblReportDetails as a Clustered Index.
This is my question: Since I never do anything with Autos, meaning that i never search by it, or update it (obviosuly since its Identity), does it make sense to eliminate it from beeing a clustered index, and add the clustered index to ReportNum. I do search alot by ReportNum from the tblReportDetails.
Thanks, I tried that, but SQL server is giving me a hard time doing this.
Fields: 1) ReportNum (int Identity field)(Clustered Index)
2) Date (datetime)
3) etc....
I have a 2nd table called tblReportDetails.
Fields: 1) Autos (int, which is the identity field)
2) ReportNum (foreign key to tblReports)
The above is essentially a Master / Detail relation.
tblReports has Clustered Index ReportNum
Sql server 2000 automatically added Autos from tblReportDetails as a Clustered Index.
This is my question: Since I never do anything with Autos, meaning that i never search by it, or update it (obviosuly since its Identity), does it make sense to eliminate it from beeing a clustered index, and add the clustered index to ReportNum. I do search alot by ReportNum from the tblReportDetails.
Thanks, I tried that, but SQL server is giving me a hard time doing this.