Questions tagged [filegroup]

A filegroup is a named collection of SQL Server database objects and files used for allocation and administration purposes.

SQL Server databases can store their data in one or more filegroups. There is always a "primary" filegroup which is the default storage area. There can be one or more additional "user-defined" filegroups which can also store data. Reasons to use multiple filegroups include:

  • Larger storage capacity
  • Better performance by distributing requests to multiple drives
  • Additional security options

Drawbacks include:

  • Restore, backups, and disaster recovery can be more complicated
  • Additional programming to make sure that all filegroups are used

See File and Filegroups Architecture at MSDN for more information and examples.

93 questions
-2
votes
1 answer

Is there any bad affect on heavy queries on tables that are placed in different filegroups?

I need to split tables into multiple file groups. My queries contains join between these tables that will be in different file groups. Does this cause bad performance on my queries?
ahmad valipour
  • 293
  • 2
  • 11
-2
votes
1 answer

How can I delete a file of the primary filegroup (SQL Server)

I have a database with a lot of tables and I created a new file in the primary filegroup, I haven't inserted any new data yet but when I try to delete this new file, I get this error The File ‘newfile’ Cannot be Removed Because it is Not Empty How…
user9481832
1 2 3 4 5 6
7