1

Can someone tell me what the provider string looks like when trying to connect from MS SSMS to PostgreSQL database via linked server?

enter image description here

1

1 Answer 1

2

Created DSN (data source name) with ODBC Data Source Administrator (64-bit) tool. Named it PostgreSQLW31. In it, I used PostgreSQL Unicode(x64) driver and data like username, password, port, database, server. Tested connection with a test connection button. I used that PostgreSQLW31 data source name instead of the provider string in SSMS. You can use one or the other.

After that in SSMS, right click on server link created earlier, serurity, and then add Local server login to remote server login mappings. Add local SQL user, add remote db user and pass and it works.

link for casting not supported data types

Edit: I succeeded to connect with this data provider (connection string): Provider=MSDASQL; DRIVER=PostgreSQL Unicode(x64); SERVER=my_server_ip; DATABASE=my_db; UID=my_user; PWD=my_pass

1
  • As a side note: ConnectionStrings.com is a wonderful collection of all kinds of DB connections. Commented Aug 8, 2023 at 6:22

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.