Issue when trying to create a Foreign Catalog to a On Prem SQL Server Instance
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-18-2025 05:56 AM
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:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-09-2025 12:18 AM
I m facing the same issue, any leads on this please
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-09-2025 01:09 AM
In the end, I had to create the connection in code and not directly reference the instance. See code below. This seems to work and give me access to all the databases we have across our different instances (providing security permissions are in place at the SQL end). This still doesn't feel quite right too me and doesn't quite have the granularity I want, but it works as we can create foreign catalogs to each database and allows us to read and use the data from it quite nicely.
Give this a go, good luck!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-11-2025 07:49 PM
Hi @Nick_Pacey Thank you I already did that using in the code
jdbc_url = "jdbc:sqlserver://999.99.999.99\\instance:7777;encrypt=true;trustServerCertificate=true;database=mydatabase"
jdbc_username = "myusername"
jdbc_password = "mypassword"
jdbc_driver = "com.microsoft.sqlserver.jdbc.SQLServerDriver"
wish the create connection syntax has the option for instance or the databricks UI provisions that