Can Azure DMS migrate On-Prem SQL Server to Azure PostgreSQL Flexible Server?

Mian Abdul Hanan 0 Reputation points
2025-12-03T09:08:53.3333333+00:00

I have an on-premise SQL Server database that I want to migrate to Azure Database for PostgreSQL – Flexible Server. Can Azure Database Migration Service (DMS) perform this type of migration (SQL Server ➝ PostgreSQL Flexible Server)?

If not, what is the recommended or supported approach/tool for migrating from SQL Server to Azure PostgreSQL?

Azure Database Migration service
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Q&A Assist
    2025-12-03T09:09:01.42+00:00
    AI generated content. This question contains an answer created with AI from Q&A Assist. Learn more

    Azure Database Migration Service (DMS) does not support direct migration from SQL Server to Azure Database for PostgreSQL Flexible Server. DMS is primarily designed for migrations between similar database types, such as SQL Server to SQL Database or PostgreSQL to PostgreSQL.

    For migrating from SQL Server to Azure PostgreSQL, you can consider using the following approaches:

    1. Data Migration Assistant (DMA): This tool helps assess your SQL Server database for compatibility issues and provides recommendations for migration.
    2. Azure Data Factory: You can use Azure Data Factory to create data pipelines that can move data from SQL Server to PostgreSQL.
    3. Manual Migration: This involves exporting data from SQL Server and importing it into PostgreSQL using tools like pgAdmin or psql.

    It's recommended to evaluate your specific requirements and choose the best approach based on your scenario.

    0 comments No comments

  2. VRISHABHANATH PATIL 2,230 Reputation points Microsoft External Staff Moderator
    2025-12-03T10:18:52.51+00:00

    Hi @Mian Abdul Hanan

    Thank you for contacting to Microsoft QA.

    It sounds like you’re looking to migrate your on-premises SQL Server database to Azure Database for PostgreSQL – Flexible Server. Unfortunately, Azure Database Migration Service (DMS) does not support direct migrations from SQL Server to PostgreSQL.

    However, here are some recommended methods for migrating from SQL Server to Azure Database for PostgreSQL:

    Dump and Restore: This method involves creating a backup dump of your SQL Server database and restoring it on PostgreSQL.

    Export and Import: You can export your SQL Server data to files and then import those files into PostgreSQL.

    Custom Migration Scripts: Utilize custom scripts to move your data and schema manually, ensuring the conversions from SQL types to PostgreSQL types are correctly managed.

    Third-Party Tools: Tools like AWS Schema Conversion Tool and others can also help in migrating databases across these platforms.

    For more details on these methods, you might want to check the documentation on migrating PostgreSQL databases:

    Follow-Up Questions:

    To provide more tailored advice, it would be helpful to know:

    • What version of SQL Server are you currently using?
    • How large is your database (in terms of data and number of tables)?
    • Do you have any specific constraints on downtime during migration?
    • Are there any specific features in your SQL Server database that you need to replicate in PostgreSQL?
    0 comments No comments

Your answer

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