cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results for 
Search instead for 
Did you mean: 

Issue when trying to create a Foreign Catalog to a On Prem SQL Server Instance

Nick_Pacey
New Contributor III

Hi,

We are creating a lakehouse federated connection to our 2016 On Prem SQL Server.  This has an instance in place, so we only want and need to connect to this instance.  From this connection, we want to create a foreign catalog of a database on the SQL Instance.  Our problem is that no matter what syntax we use, we cannot get the connection to work.  Our code is as follows:

 
CREATE CONNECTION On_Prem_SQL_Svr TYPE sqlserver
OPTIONS
(
host '192.xxx.xxx.xxx',
port 'xxxxx',
user 'username',
password 'password',
trustServerCertificate 'true'
)
On the host name we have tried every combination of syntax we can think of after the server IP address (\instance \\instance /instance %5Cinstance //instance and some other crazy ones!).  We sometimes get different errors, but none work.  We know connectivity and authentication all work fine, so the problem is either a) syntax or b) you can't create a connection to an On Prem SQL Instance?
 
We've also tried this through the create federated connection UI and hit the same problem.
 
Any help out there much appreciated!  Anyone else managed to get this working?
Thanks
Nick
 

 

0 REPLIES 0

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you won’t want to miss the chance to attend and share knowledge.

If there isn’t a group near you, start one and help create a community that brings people together.

Request a New Group