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
Mar 25
2025
Transition a pivot query that includes dynamic columns from SQL Server to PostgreSQL
Feb 10
2026
Build a custom solution to migrate SQL Server HierarchyID to PostgreSQL LTREE with AWS DMS
May 28
2024
New Oracle to PostgreSQL built-in system functions in DMS Schema Conversion

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.