Hi, Can anyone explain as how SQL server stores data in multiple DB files .Whats the algorithm and how it choses with data file to be written .
<hr />
It's a proportional fill algorithm based on the amount of free space in the files in the filegroup. Check the File and Filegroup Fill Strategy section in the following documentation: