Skip to content

Set a default filegroup

In some databases, the entities of one project has to be in a specific filegroup. In this instruction you will set a default filegroup for a physical data model. You have to set this once for each physical data model.

  1. Open the physical data model.
  2. Click on Database > Default Physical Options.
    Menu Default Physical Options
  3. The window Default Physical Options appears. The tab Table is open. Click on the plus sign next to on, to expand the tree. The option <filegroup>("DEFAULT") appears
    Default Physical options
  4. Select <filegroup>("DEFAULT") and click on the button with the >> symbol. This will bring the option to the right side of the window.
  5. Select the filegroup and edit the text at the bottom of the window, next to <filegroup> =. Make sure the text is without quotes. If you put quotes in it, this will lead to three quotes in the script, which lead to an error while running the script.
    Edit filegroup
  6. In the figure below you see an example where the filegroup is changed to PRIMARY.
    Edit filegroup. The filegroup applies to every new entity you make.

  7. To apply the settings to existing entities, click on Apply to. A window appears where you can select the existing entities. Put a checkmark next to the entities you want to apply the setting to, and click on OK.
    Apply to

Check the script

  1. To check if the filegroup settings are changed, double click on a table. The window Table Properties appears.
  2. Click on Preview to check the generated script.
    Preview script