I have to expoet my DB into a bacpac file to import it into Azure. When I try to export I get an error because any indexes have a fillFactor value.
I've found how to set a fillFactor value for all indexes but I can't specify 0, the value have to be between 1 an 100. If I change the value in the management studio I can set it to 0.
The problem is that I have got lots of indexes to change and I would like to change the fillFactor value to all of them trough tsql.
Any ideas?.
Thanks.
does the job. 0 is equal to 100 (see http://msdn.microsoft.com/en-us/library/ms177459.aspx), meaning no gaps are left in the index.
you have to run this for every index. the rebuilding can take considerable time, though.