CartoDB / odbc_fdw

PostgreSQL Foreign-data Wrapper for ODBC
Other
66 stars 22 forks source link

import a VIEW from sqlserver turn out to ERROR: Executing ODBC query #115

Closed suishaojian closed 3 years ago

suishaojian commented 4 years ago

I want to import a VIEW from sqlserver to pg with odbc_fdw . and the command is as follows: IMPORT FOREIGN SCHEMA "dbo" LIMIT to ("View_test") FROM SERVER erp_sqlserver2 INTO "erp_test" OPTIONS ( odbc_DATABASE 'testDB'); But when I query with "select * from View_test" ,it response "ERROR: Executing ODBC query" ... I'll be grateful if anyone can offer help ...

suishaojian commented 3 years ago

fixed by modifying config.