The following is my code
df.write \
.format("com.databricks.spark.sqldw") \
.option("url", "jdbc:sqlserver://**********.sql.azuresynapse.net:1433;database=********") \
.option("user","sqladminuser")\
.option("password","***********") \
.option("forwardSparkAzureStorageCredentials", "true") \
.option("dbTable", "dbo.testingoutfromdatabricks") \
.option("tableOptions", "CLUSTERED COLUMNSTORE INDEX, DISTRIBUTION = HASH (_c0)") \
.option("tempDir", "abfss://********@**********.dfs.core.windows.net/tempfolder/") \
.save()
And I got the following error .
Not able to validate external location because The remote server returned an error: (403) Forbidden. [ErrorCode = 105215] [SQLState = S0001]
from the Azure synapse sql pool , I use COPY command from the same blob storage , and successfully load the table ... Anyone got the above error ?