PostgreSQL ODBC Driver for Microsoft Visual Studio Connection

Accessing the PostgreSQL database can be fast and seamless by using the Open Database Connectivity (ODBC) solution. Providing full interoperability, the ODBC driver for PostgreSQL allows you to access live PostgreSQL data directly from Microsoft Visual Studio. It enables you to retrieve data to Microsoft Visual Studio, and review and modify these data right in this application.

PostgreSQL Key Features

  • Open source
  • Low memory leakage problem
  • Support for multiple table types
  • Platform Independent

Microsoft Visual Studio Key Features

  • Integrated development environment
  • Database development features
  • Seamless integration with source control
  • Extensibility and ecosystem
Native Connectivity to PostgreSQL

Direct Connection

Our data connector enables various ODBC-aware applications to establish a direct connection to PostgreSQL via TCP/IP to eliminate the need for a PostgreSQL client. A direct connection increases the speed of data transmission between Microsoft Visual Studio and PostgreSQL for real-time analytics. It streamlines the deployment process since there is no need to distribute any additional client-side software with the ODBC driver for PostgreSQL.

What are some reasons to choose Devart ODBC Driver for PostgreSQL?

Integration

Integration

The ODBC driver for PostgreSQL is compatible with Microsoft Visual Studio allowing extraction of data by executing SQL statements.

Platforms Variety

Platforms Variety

ODBC Driver for PostgreSQL can be used with 32-bit and 64-bit applications on both x32 and x64 platforms, so there is no need to additionally configure the driver, applications, or environment.

Fully Unicode-Compliant Driver

Fully Unicode-Compliant Driver

With our fully Unicode-compliant driver, you can properly retrieve and modify any data in multilingual PostgreSQL databases, regardless of their character set: Latin, Cyrillic, Hebrew, Chinese, etc., and in any language environment.

How to Download, Install, and Configure the ODBC Driver for PostgreSQL?

Download the driver. Run the installer and follow the instructions in the wizard.
Activate the driver in ODBC Administrator. In the System DSN tab, click the Add button and select the needed driver. Click Finish.
To configure the DSN In the ODBC Data Source Administrator, move to the System DSN tab and select the installed ODBC driver. Click Add. In the appeared Create New Data Source dialog, insert the database connection data. You may test the connectivity by clicking the Test Connection button. To save the DSN, click Ok.
Tools

To install and configure an ODBC driver for PostgreSQL on macOS, download first the PKG file from the Devart website. Run the downloaded file and follow the instructions in the wizard. After installing the driver, run the 64-bit or 86-bit iODBC utility, find the needed driver, and click Configure. In the dialog box that appears, specify the required connection settings and click OK. To establish a connection to the data source, click Test.

macos
Installation of ODBC driver on Ubuntu is carried out from the DEB package. Download the package that matches the bitness of your operating system.
Then open the folder with the downloaded package, double-click the DEB package, and click Install.
Open the Terminal and install the driver by using the following command.
If you use CentOC, you need to download the RPM package of the corresponding bitness.
After that, open the ‘Konsole’ and navigate to the folder with the downloaded package specifying the path to the folder as a parameter of the cd command. Then, install the driver by using the following commands.
Gui installation

To install the devartodbcpostgresql_i386.deb on a 32-bit system, use:

use sudo dpkg -i devartodbcpostgresql_i386.deb

To install the devartodbcpostgresql_amd64.deb on a 64-bit system, use:

sudo dpkg -i devartodbcpostgresql_amd64.deb

For more detailed information about installing and configuring an ODBC driver for PostgreSQL on Ubuntu, go to the documentation.

cd ~/Downloads/

To install the devart-odbc-postgresql.i386.rpm on a 32-bit system, use:

sudo -rpm -ivh devart-odbc-postgresql.i386.rpm

To install the devart-odbc-postgresql.x86_64.rpm on a 64-bit system, use:

sudo rpm -ivh devart-odbc-postgresql.x86_64.rpm

For more detailed information about installing and configuring an ODBC driver for PostgreSQL on Centos, go to the documentation.

How to connect Visual Studio to PostgreSQL data source and access data in 3 steps

Install the driver and configure an ODBC data source in the driver settings

01. Install the driver and configure an ODBC data source. Start Visual Studio and select Tool > Connect to database (ODBC).

Install the ODBC driver for Visual Studio
Start Database Connection window and link to a database

02. Select Microsoft ODBC Data Source as Data Source and spesify the DSN. Test your connection and click Ok.

Choose ODBC driver in Visual Studio
Run a query against the data storage

03. In Server Explorer, expand the database and right-click on the table. Select Retrieve data to display it in a grid.

Retrieve database to Visual Studio

Advantages of Connectivity to PostgreSQL from Microsoft Visual Studio via ODBC Driver

Secure Connection

Secure Connection

Every operation with PostgreSQL becomes significantly faster using such capabilities of our driver as local data caching, connection pooling, and much more.

Working with Microsoft Visual Studio using Multiple Functions

Working with Microsoft Visual Studio using Multiple Functions

Using Microsoft Visual Studio, you can create tables, add data, select, delete, sort, edit, combine data from several database tables, and find unique values quickly and easily.

ODBC Conformance

ODBC Conformance

The driver fully supports the ODBC interface, its data types, and functions. It offers advanced connection string parameters and allows any ODBC-compliant desktop or web application to connect to PostgreSQL from Microsoft Visual Studio on various platforms.

Simple SQL Querying on Microsoft Visual Studio Files

Simple SQL Querying on Microsoft Visual Studio Files

Microsoft Visual Studio processes SQL through its SQL dialect. Using ODBC connection, it is simple to execute different SQL queries to retrieve entire tables or specific columns from Excel, filter data, formate data, numbers, etc.

Cost-Effective Deployment

Cost-Effective Deployment

Installing the driver is easy with the standalone installation file. There is no need in deploying and configuring any additional software which results in a reduction in deployment costs.

Sharing Your Data with Excel

Sharing Your Data with Microsoft Visual Studio

You can share your data with other users in Microsoft Visual Studio quickly and easily. Upload your Microsoft Visual Studio data to the SharePoint lists so that it can be available for you and others to use to create reports, data models, dashboards, etc.

Popular Microsoft Visual Studio Integrations Using ODBC Driver