Trying to save data into Azure SQL DW
See original GitHub issueHello, I am trying to save data into Azure SQL DW using Spark (Databricks) and receive that message:
com.microsoft.sqlserver.jdbc.SQLServerException: The server principal "username" is not able to access the database "master" under the current security context. ClientConnectionId:63631086-5712-487d-9481-8b5ee7a24726
This is an issue or I am doing something wrong?
Issue Analytics
- State:
- Created 3 years ago
- Comments:17 (7 by maintainers)
Top Results From Across the Web
Load data into Azure Synapse Analytics - Microsoft Learn
Use Azure Data Factory or an Azure Synapse pipeline to copy data into Azure Synapse Analytics.
Read more >Writing Data to Azure SQL Data Warehouse with ... - YouTube
Welcome to the Month of Azure Databricks presented by Advancing Analytics. In this video Simon takes you though how write data from a...
Read more >Load data from Azure Blob storage into Azure SQL - YouTube
In this video, Anna Hoffman and Jeroen ter Heerdt discuss and show one way for loading data from Azure Blob storage into Azure...
Read more >Microsoft Azure Data Warehouse: Pricing, Comparison, & Best ...
Azure Data Warehouse is a cloud-based centralized repository of data that captures data from a wide array of sources. It enables storing, creating,...
Read more >Export data from Azure SQL Database to Azure Data Lake ...
To create a data pipeline in Azure Data Factory, we need to create an instance of Data Factory. Navigate to the All services...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@arvindshmicrosoft Thanks for the replies. I found the error with the help of my teammate. I didn’t have owner permission to access the DB. I got it and then it started showing up.
Thanks for the quick reply @arvindshmicrosoft . I am running it from my local terminal. I use findspark to include jars. After adding this option
option("driver", "com.microsoft.sqlserver.jdbc.SQLServerDriver")
this error is gone. Now I get this:com.microsoft.sqlserver.jdbc.SQLServerException: Invalid object name 'dbo.job_tbl'
However, I am 100% sure this table exists in the DB. I saw some resources that Java tries to match with some letter case error and hence it doesn’t find the table. Not exactly sure about what’s causing this.