---
title: Flex2SQL error accessing the PostgreSQL server
description: Here's how to proceed if you get an error message in Flex2SQL when trying to access the PostgreSQL server.
---

[Mertech Blog ](https://www.mertech.com/blog)

# [Flex2SQL error accessing the PostgreSQL server](https://www.mertech.com/blog/flex2sql-error-accessing-postgresql-server)

 Written by [Mertech](https://www.mertech.com/blog/author/mertech) | Feb 12, 2014 9:12:00 PM

Here's how to proceed if you get a message stating "Unable to load the MDSPGSQL driver. Please check that you installed the client library and that the driver can be found."

### Problem

An error message displays when trying to access the PostgreSQL server:

<https://www.mertech.com/hubfs/Imported_Blog_Media/ErrorLoadingDriver2.png>

### Cause

Typically this problem is caused by missing dependencies for the PostgreSQL client library:

- Common Windows dlls: msvcr71.dll, msvcr80.dll, comerr32.dll
- Kerberos Support: gssapi32.dll, k5sprt32.dll, krb5_32.dll
- SSL: libeay32.dll, libiconv-2.dll, libintl-8.dll, ssleay32.dll

- PostgreSQL library itself: libpq.dll

### Solution

For FLEX2SQL 12.1 and above, the dlls should already be available for the Migration tool and installed in the <winsys32> directory. Depending on whether you are running on a 32–bit computer or on a 64–bit computer, the <winsys32> variable is resolved as:

- 32–bit: <windir>\system32

- 64–bit: <windir>\sysWOW64

For earlier releases, contact Mertech technical support for the required dlls.

[View full post](https://www.mertech.com/blog/flex2sql-error-accessing-postgresql-server)

```json
{
  "@context" : "http://schema.org",
  "@type" : "BlogPosting",
  "author" : {
    "@type" : "Person",
    "name" : "Mertech"
  },
  "dateModified" : "2018-02-27T22:23:12.511Z",
  "datePublished" : "2014-02-12T21:12:00Z",
  "headline" : "Flex2SQL error accessing the PostgreSQL server",
  "image" : {
    "@type" : "ImageObject",
    "height" : 150,
    "url" : "https://cdn2.hubspot.net/hubfs/2683630/Imported_Blog_Media/ErrorLoadingDriver2-300x150.png",
    "width" : 300
  },
  "mainEntityOfPage" : "https://www.mertech.com/blog/flex2sql-error-accessing-postgresql-server",
  "publisher" : {
    "@type" : "Organization",
    "logo" : {
      "@type" : "ImageObject",
      "height" : 60,
      "url" : "/hs/hsstatic/content_shared_assets/static-1.4092/img/default-amp-logo.png",
      "width" : 60
    },
    "name" : "Blog"
  }
}
```