question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Trying to save data into Azure SQL DW

See original GitHub issue

Hello, 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:closed
  • Created 3 years ago
  • Comments:17 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
dgajendrancommented, Aug 14, 2020

@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.

1reaction
dgajendrancommented, Aug 14, 2020

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found