How to add Data or Log Files to a Database in SQL Server

In this article, we will see how to add Data or Log Files to a Database in SQL Server step by step.

Permissions required:

Requires ALTER permission on the database.

Limitations and Restrictions

1. We cannot add or remove a file while a BACKUP statement is running.
2. A maximum of 32,767 files and 32,767 filegroups can be specified for each database.

Method1: Using SQL Server Management Studio
1. Connect to SQL Server Instance and expand Databases, right-click the database from which to add the files, and then click Properties.
Continue reading How to add Data or Log Files to a Database in SQL Server