Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Questions: How to select from SQL Server #121

Open
mettemusen opened this issue Mar 2, 2020 · 3 comments
Open

Questions: How to select from SQL Server #121

mettemusen opened this issue Mar 2, 2020 · 3 comments

Comments

@mettemusen
Copy link

Hi

Being new to Postgres and need to connect to the SQL Server.

Can you come with an example to access SQL Server from Postgres ?

I have installed the FDW but am unsure what to have in the create server options ...
create server sqlserver foreign data wrapper odbc_fdw options (

And that goes for the user mapping too...

And do I need to create foreigh table or can I just use IMPORT ?

Lots of questions I know ...

Best regards
Mette

@mlt
Copy link

mlt commented Aug 25, 2020

This is not stack exchange.. nevertheless, you can find an example in AppVeyor testing. Server options template and actual data to give you an idea. User mapping is there just to auto set up credentials for a given PG role. You can see it in the links I mentioned. And yes, you can just import.

@huolijian
Copy link

Hi,

I'm also working on this connection.I have a problem: how to install ODBC_fdw correctly so that "CREATE EXTENSION ODBC_fdw" can work properly.My system is Windows.

Best wish for you!
Lijian

@mlt
Copy link

mlt commented Nov 6, 2020

What error do you get? How did you try to install it? Usually you move dll into lib/ folder and dot control and dot sql files into share/extension/ .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants