Sql-server – After adding data files to a file group Is there a way to distribute the data into the new files

groupssql serversql-server-2005

I have a database in a single file group, with a single file group. I've added 7 data files to this file group. Is there a way to rebalance the data over the 8 data files other than by telling sql server to empty the original? If this is the only way, is it possible to allow sql server to start writing to this file? MSDN says that once its empty its marked so no new data will be written to it.

What I'm aiming for is 8 equally balanced data files.

I'm running SQL Server 2005 standard edition.

Thanks

Best Answer

Rebuild your indexes:

exec sp_MSforeachtable 'alter index all on ? rebuild';