Home icon

Use the tds_fdw extension to migrate data from SQL Server to PostgreSQL

Database Blog



This article demonstrates how to migrate data from SQL Server to PostgreSQL using the tds_fdw PostgreSQL extension. It covers the following key points:

  • Configure the target PostgreSQL database
  • Import the schema from the SQL Server database
  • Create target tables based on the source table definition
  • Reconcile DATE-related column issues due to locale setting differences
  • Perform data validation
  • Clean up intermediate objects used for migration

The tds_fdw extension allows PostgreSQL to access data from SQL Server databases. By setting up foreign data wrappers and servers, PostgreSQL can import schemas and data directly from SQL Server. The article provides detailed steps for this process, including handling date format issues between the two database systems. Overall, it presents an alternative migration approach for simpler data transfer needs compared to using AWS DMS.



Go to article

The AWS News Feed is currently looking for gold sponsors. If you want to support the AWS community and reach a large audience of AWS professionals, consider sponsoring the AWS News Feed.

Related articles

Jun 9
2025
Using the PostgreSQL extension tds_fdw to validate data migration from SQL Server to Amazon Aurora PostgreSQL
Jan 3
2024
Migrate date functions from Oracle to Amazon RDS for PostgreSQL
Jan 23
2024
Migrate rows with unique constraints to Amazon RDS for PostgreSQL or Amazon Aurora PostgreSQL
Dec 29
2023
Convert JSON SQL queries from an Oracle database to a PostgreSQL database

The AWS News Feed is currently looking for silver sponsors. If you want to support the AWS community and reach a large audience of AWS professionals, consider sponsoring the AWS News Feed.