June 30, 2014 at 11:53 pm
Hello
Our mdf file is growing at a rapid rate and we are a running out of space on the drive that hosts it. As a backup plan I wanted to create a new ndf file and point all new activity to this file so the old one ceases to grow. I know how to create the new file however I don't know how to point all new activity towards it, SQL server seems to split the activity over the 2 files.
Does anybody know how to do this?
July 1, 2014 at 12:12 am
I guess I wouldn't try such a thing. I believe that if you simply add another file to the file group, it will use that new file until both files balance.
--Jeff Moden
Change is inevitable... Change for the better is not.
July 1, 2014 at 4:28 am
Jeff Moden (7/1/2014)
I believe that if you simply add another file to the file group, it will use that new file until both files balance.
Unless the first file is full, no it won't. It's called proportional fill algorithm and will still fill both files just at a different rate.
-----------------------------------------------------------------------------------------------------------
"Ya can't make an omelette without breaking just a few eggs" 😉
July 1, 2014 at 7:25 pm
Thanks for the replies, I actually got around this by adding another databases file to the primary filegroup on a new disk with unlimited growth, then limiting the growth on the original file. The original file used up it's allocated space then stopped growing, all the new growth started happening on the new file
Viewing 4 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply