on 2020 Jan 20 12:22 PM
Hi,
I am trying to get a polybase connection going from SQL 2019 to sybase 17. The connection is working and I can see data, but its converting sql to ANSI. Example:
SELECT TOP (1000) * FROM [polygrab].[dbo].[ExtEvent_test]
Cannot execute the query "Remote Query" against OLE DB provider "MSOLEDBSQL" for linked server "(null)". 105082;Generic ODBC error: [SAP][ODBC Driver][SQL Anywhere]Syntax error near 'limit' on line 3 .
Here is my poly-base connection
CREATE EXTERNAL DATA SOURCE [TicketMaster] WITH ( LOCATION = N'odbc://externalserver.com:50459' , CONNECTION_OPTIONS = 'DRIVER={SQL Anywhere 17}; Host=externalserver.com:50459; ServerName= <servername>; DatabaseName=<databasename>;' , CREDENTIAL = [PolyFriend2] )
What am I doing incorrectly ?
Here is the connection log:
UID=user_name;PWD=********;DBN=database;ServerName=
<serverName>;CON=SQL_DBC_<#>;LOG=c:\\log\\client.log;Host=externalserver.com:50459
09:56:13 Attempting to connect to a running server...
09:56:13 Attempting TCPIP connection (address externalserver:50459 found in sasrv.ini cache)
09:56:13 Looking for server with name <database_name>
09:56:13 Trying to find server at cached address externalserver:50459 without broadcasting
09:56:13 Found database server <database_name> on TCPIP link
09:56:13 Connected using client address externalserver:50459
09:56:13 Connected to server over TCPIP
09:56:13 Connected to SQL Anywhere Server version 17.0.10.5963
09:56:13 Application information:
09:56:13 IP=172.20.210.171
;HOST=my_machine
;OSUSER=my_machine$;OS='Windows 8 Build 9200 '
;EXE='C:\\Program Files\\Microsoft SQL Server\\MSSQL15.MSSQLSERVER\\MSSQL\\Binn\\Polybase\\mpdwsvc.exe'
;PID=<#>
;THREAD=<#>
;VERSION=17.0.0.1062
;API=ODBC
;TIMEZONEADJUSTMENT=-300
09:56:13 Connected to the server, attempting to connect to a running database...
09:56:13 [185313] Connected to database successfully
09:56:13 [185313] Client disconnected
09:56:13 [185313] Disconnected from server
Request clarification before answering.
User | Count |
---|---|
64 | |
8 | |
7 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.