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
 General SQL Server Forums
 New to SQL Server Programming
 SQL performance

Author  Topic 

Andy dg
Starting Member

6 Posts

Posted - 2007-01-20 : 23:25:26
For performance should we index on primary key & data in table in the same file group or different file group (same or different drive) ?

Thanks,
Andy

nr
SQLTeam MVY

12543 Posts

Posted - 2007-01-21 : 10:20:22
As far as performance is concerned the PK is no different to other indexes.
If you mean a clustered index then there's no choice.

It's probably faster to have the index on a separate drive to the data but may well be overridden by other factors.


==========================================
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

russell
Pyro-ma-ni-yak

5072 Posts

Posted - 2007-01-22 : 01:18:11
quote:
Originally posted by nr
It's probably faster to have the index on a separate drive to the data but may well be overridden by other factors.



i would expand by saying it is almost always faster to do it this way.
Go to Top of Page
   

- Advertisement -