![]() |
VOOZH | about |
The CData Excel Add-In for PostgreSQL enables you to edit and save PostgreSQL data directly from Excel. This article explains how to transfer data from Excel to PostgreSQL. This technique is useful if you want to work on PostgreSQL data in Excel and update changes, or if you have a whole spreadsheet you want to import into PostgreSQL. In this example, you will use the Orders table; however, the same process will work for any table that can be retrieved by the CData Excel Add-In.
If you have not already done so, create a new PostgreSQL connection by clicking From PostgreSQL on the ribbon.
To connect to PostgreSQL, set the Server, Port (the default port is 5432), and Database connection properties and set the User and Password you wish to use to authenticate to the server. If the Database property is not specified, the data provider connects to the user's default database.
You can use SSH (Secure Shell) to authenticate with PostgreSQL, whether the instance is hosted on-premises or in supported cloud environments. SSH authentication ensures that access is encrypted (as compared to direct network connections).
To connect to PostgreSQL via SSH in Password Auth mode, set the following connection properties:
To connect to PostgreSQL via SSH in Password Auth mode, set the following connection properties:
To insert data into PostgreSQL, you will first need to retrieve data from the PostgreSQL table you want to add to. This links the Excel spreadsheet to the PostgreSQL table selected: After you retrieve data, any changes you make to the data are highlighted in red.
After retrieving data, you can add data from an existing spreadsheet in Excel.
As each row is inserted, the Id value will appear in the Id column and the row's text will change to black, indicating that the record has been inserted.
👁 The changes applied. (QuickBooks is shown.)Download a free trial of the Excel Add-In for PostgreSQL to get started:
Download NowLearn more:
👁 PostgreSQL IconThe PostgreSQL Excel Add-In is a powerful tool that allows you to connect with live data from PostgreSQL Server databases, directly from Microsoft Excel.
Use Excel to read, write, and update PostgreSQL data. Perfect for mass imports / exports / updates, data cleansing & de-duplication, Excel based data analysis, and more!