December 23, 2004 at 10:16 am
December 23, 2004 at 1:57 pm
Yes. It's better to have multiple data files then a single file because SQL Server creates a backup thread for each file that is being backed up.
If you already have a big file and you add another file, SQL Server will distribute the data to both files if both file size is set to unlimited. If the size is set to 'restrict file growth', it will distribute as long as it did not hit the restricted size. You can use task pad of EM (Enterprise Manager) to view the free space.
December 28, 2004 at 9:25 am
You stated "It's better to have multiple data files then a single file because SQL Server creates a backup thread for each file that is being backed up." Does this depend on specifying multiple backup files in the backup statement?
Some more follow-up questions for you or anyone else:
On a 4 processor box what would be the optimum number of files? How large is a "big data file" in the SQL Server world?
Can someone answer the question: "If it does redistribute the data currently in the database, what kind of a performance hit do you take while that is being done?"
And to clarify the question: "Is there a way using SQL to see the amount of free/used space in each physical data file?" I would like to know if there is a way to do this from TSQL?
Can adding a data file be done while the server is under load? If so will it affect users access to the database?
December 28, 2004 at 12:21 pm
1) Typically, you'd have multiple files when you have direct control of seperate physical disk devices for data placement, and for the purpose of performance. But since you're already on RAID-5, which achieves similar objective (i.e. fault tolerance and performance via disk striping). In my opinion, you're not going to gain much if anything by having multiple data files.
2) The main advantage about multiple files with respect to backup is that you can selectively backup individual file.
3) I don't believe SQL Server redistribute the existing data when you're adding new file to the database, therefore it should not affect ongoing processes.
Viewing 4 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply