I'm trying to create an External Data Source for PolyBase via ODBC connectors in SQL Server 2019, but I'm getting the error:
OLE DB provider "MSOLEDBSQL" for linked server "(null)" returned message "Cannot generate SSPI context".
Msg -2146893042, Level 16, State 1, Line 11
SQL Server Network Interfaces: No credentials are available in the security package
I am using SSMS 18.4 and I'm running the following command:
CREATE EXTERNAL DATA SOURCE TEST
WITH (
LOCATION = 'odbc://sap.company.com',
CONNECTION_OPTIONS = 'DSN=SAP',
CREDENTIAL = my_creds
);
I did a fair amount of reading and it seems like the error can be 1 of many things. But I can't really find anything where it relates to External Data Sources.
Any advice or guesses will be appreciated.
- I'm running SQL 2019 Developer (RTM) 64 bit on Windows 10
- I have an ODBC entry called SAP that connects succesfully
- my_creds has been created in SQL with SAP user name and password.
- My SQL 2019 PolyBase Engine service is running under Network Service (same with the PolyBase Data Movement service).
- TCP/IP has been enabled on the PolyBase service.