How to create Filegroup in Azure MS SQL Server

Soniya Sharma 20 Reputation points
2023-06-09T15:05:12.63+00:00

Hi,

I want to create a partition on an attribute in Azure MS SQL Server DB.

I have created a partition function but the partition scheme needs filegroups.

How can I create new filegroups which are used in the below example?

I want to implement below -

CREATE PARTITION FUNCTION COUNTRY_PF (NVARCHAR(30))

AS RANGE LEFT FOR VALUES ('AUSTRALIA', 'US', 'UK');

CREATE PARTITION SCHEME COUNTRY_PS

AS PARTITION COUNTRY_PF

TO (AUS_FG, US_FG, UK_FG);

Azure SQL Database
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Alberto Morillo 34,671 Reputation points MVP Volunteer Moderator
    2023-06-09T15:31:41.27+00:00

    Unfortunately, you don't have control over filegroups on Azure SQL. But sill you can take advantage of partitioning on Azure SQL. Here you can see a detailed article.

    On this support article you can see another complete example of how to do it.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.