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.
| Author |
Topic |
|
rb1373
Yak Posting Veteran
93 Posts |
Posted - 2004-12-28 : 10:43:50
|
| When I run DBCC SHOWCONTIG on a table, statistics for index ID 1 is shown. Is index ID 1 the clustered index? If so, is it safe to always assume index ID 1 is the clustered index? The reason I am asking is because occasionally I run the command:dbcc indexdefrag(MyDB, MyTable, 1).I run this command occasionally until I can get a scheduled process built for my environment.Thanks.- rb |
|
|
nr
SQLTeam MVY
12543 Posts |
Posted - 2004-12-28 : 10:47:21
|
| Yes.If no clustered index the table will have an index id 0. A clustered index will replace this with index id 1.==========================================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. |
 |
|
|
|
|
|