08-04-2025 05:05 AM
Hi all 🙂
I am trying to create a Lakeflow Ingestion Pipeline for SQL Server, but I am running into the following authentication error when using my Databricks Database User for the connection:
Gateway is stopping. Authentication failure while obtaining the connection to the source database: Error while creating connection pool for catalog master. Login failed for user 'db_lakeflow_user'.
In order to test if there is a problem with my connection configuration I tried to use my Admin User for the connection. In this case everything works fine, so I am assuming there is something wrong with the permissions of the Database User 'db_lakeflow_user'.
I followed the Databricks Documentation in order to set the correct permissions for the database user (https://docs.databricks.com/aws/en/ingestion/lakeflow-connect/sql-server-privileges) and since I am accessing a Azure SQL Database I granted the following permissions on my source database:
Which permission is missing in order to establish a connection using the database user?
08-04-2025 05:16 AM
Hi @susanne ,
Could you try to add following permission to your user?
GRANT CONNECT TO db_lakeflow_user
08-04-2025 05:16 AM
Hi @susanne ,
Could you try to add following permission to your user?
GRANT CONNECT TO db_lakeflow_user
08-06-2025 12:20 AM
Hi @szymon_dybczak,
thanks a lot, that did the trick 🙂
08-06-2025 12:22 AM
No problem @susanne , cool that it worked for you 🙂
Thursday
I am also facing the same issue. We have user id as service principal name however in sql log it shows applicationID that it cannot login . Setvice principal ( name) has highest privileges in sql db . howevrr same is working fine through jdbc