简体   繁体   English

CData ODBC 驱动和 SQL 服务器 Polybase

[英]CData ODBC driver and SQL Server Polybase

I am currently testing External Tables in SQL Server 2019 using a the CData ODBC driver with a PostgreSQL database.我目前正在使用带有 PostgreSQL 数据库的 CData ODBC 驱动程序在 SQL Server 2019 中测试外部表。

I've managed to connect via an external data source and create external tables.我设法通过外部数据源连接并创建外部表。

I get the following error though when I select from a table containing a date:当我从包含日期的表中获取 select 时,我收到以下错误:

Generic ODBC error: Error parsing date value [30/01/2014 08:41:35.838]通用 ODBC 错误:解析日期值时出错 [30/01/2014 08:41:35.838]

The PostgreSQL database has that column as a timestamp and the SQL external table is using a datetime2. PostgreSQL 数据库将该列用作时间戳,而 SQL 外部表使用 datetime2。

I've tried altering the language settings for my login to SQL but this didn't solve the problem.我尝试将登录的语言设置更改为 SQL 但这并没有解决问题。 Is there a setting on the ODBC driver that might fix the issue? ODBC 驱动程序上是否有可能解决此问题的设置?

Have you tried with PostgreSQL driver?您是否尝试过 PostgreSQL 驱动程序? https://www.postgresql.org/ftp/odbc/versions/msi/ https://www.postgresql.org/ftp/odbc/versions/msi/

I suspect if you enable logging in PostgreSQL you won't find anything, the problem may be in the ODBC;我怀疑如果您启用登录 PostgreSQL 您将找不到任何东西,问题可能出在 ODBC; there is no debugging for it but you may contact the provider for support.它没有调试,但您可以联系提供商寻求支持。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM