Elastic query - SSL error - sql-server

I am stuck with the same situation mentioned here in this URL.See SO question Here
. I am having a Azure VM and Sql Azure db. From Sql Azure Db i am using external table to query Azure VM Sql but with error:
The underlying error message received was: 'A connection was
successfully established with the server, but then an error occurred
during the login process. (provider: SSL Provider, error: 0 - The
certificate chain was issued by an authority that is not trusted.)'.
I knew its a CA certificate error. But I cant purchase certificate as of now. So I wanted to if i can use self signed certificate for the same.
I am having a certificate in my Azure VM. See below in screenshot. Will it work? Do I need to install that in my Sql Azure Db too?

If you are talking about Azure SQL Database elastic queries they can only be created between Azure SQL databases. You will find more information here.
Linked servers to SQL Azure databases are now supported as demonstrated here.
Hope this helps.
Regards,
Alberto Morillo

Related

How to connect Azure Sql with google looker data studio?

I am trying to connect Azure SQL Database to Google Looker Studio. I have tried using Microsoft SQL Server data source and I'm getting an error that I can't understand or search.
Sorry, we encountered an error and were unable to complete your
request.
Error ID: b723485e
The next option is to try and Enable SSL but it's asking for a certificate. I'm not sure where to get this certificate from?
I am also not sure if Microsoft SQL Server is the right connection as it says its for SQL Server 2018 and I know Azure SQL is different. I have successfully connected using the third party source called "SQL" but this is a paid service and my client doesn't want to use a third party. Any suggestions on how to connect?

Unable to scan a Azure SQL Database in Azure Purview

I am unable to connect a my Azure SQL Database to Purview. I have already followed the steps described in all the documentation. I keep getting the following error code: Error: (5521) Permission is not sufficient to perform SQL action in database.enter image description here See also the pictures below.
Does anyone happen to have an answer to this, thanks in advance!
Error: (5521) Permission is not sufficient to perform SQL action in database
This error causes because of Azure Connections and Permission issue. Please follow the below steps:
Allow Azure Connection
Enabling Azure connections will allow Microsoft Purview to reach and connect the server without updating the firewall itself.
Go to Database account > select overview page >Select Security > Firewalls and virtual networks > Select Yes for Allow Azure services.
You can follow this link.
Assign Key Vault Access Policy
Create a Secret in the Azure Key vault > Assign Access using Key Vault Access Policy > Create Azure Key Vaults connections in your Azure Purview account > Register an Azure SQL Database data source> Create a scan rule by selecting the previously created credentials.
Follow below reference it has detail information:
Reference:
https://www.youtube.com/watch?v=Kteh9cXkHIE
https://www.youtube.com/watch?v=xgABjnuPMWM
https://learn.microsoft.com/en-us/azure/purview/register-scan-azure-sql-database?tabs=sql-authentication#lineagepreview
Troubleshoot your connections in Microsoft Purview - Microsoft Purview | Microsoft Docs

Not able to access Azure SQL Server - Login failed

I am not able to connect to Azure sql server from my machine, I have added my public IP and azure sql server is configured for remote access but I am getting error
Cannot connect to your Azure SQL DB logical server/Azure SQL MI server, exception: Cannot open server "SERVER NAME" requested
by the login. The login failed.
Note: I am able to connect to Azure SQL database from Azure portal.
If that's the case, you should try to download Azure Data Studio and log in with your Microsoft account that you used for Azure.
May I ask you to add in a screenshot of your login detail (you can just fake the login but the syntax must be the same) so that the community is able to understand the situation better :D

Azure SQL DB connecting to local SQL

I'm trying to connect from my azure SQL DB to link to the local SQL DB and create some linked tables that i can run some reports on within the Azure environment.
I've tested that i can follow the steps and successfully connect to another SQL Db within my Azure environment and this is working fine, so the steps i am following are correct.
However when i try to run the same steps connecting against my local DB i receive the following error:
A connection was successfully established with the server, but then an error occurred during the login process. (provider: SSL Provider, error: 0 - The certificate chain was issued by an authority that is not trusted.)
Steps i'm following are
Create Database scoped creds (using my same details that can log on via Management Studio)
create external data source
Create external table using the details created above.
This creates a external table within my azure database but when i try to select from this table i get the following message
A connection was successfully established with the server, but then an error occurred during the login process. (provider: SSL Provider, error: 0 - The certificate chain was issued by an authority that is not trusted.)
So two questions really as i've googled for some time and a lot of the posts I've found seemed to be old.
Does Azure support connecting to a local DB?
And if so any ideas what this message means?
I've read up about this and the only comments i could see mentioned TrustServerCertificate=True to false. However i'm not sure where this is set and where the change is required? to me this looks more like a change within a connectionstring for coding rather than a db to db?
Elastic queries allow a query to span multiple Azure SQL Databases but on-premises SQL Server instances can not be part of elastic queries.
My suggestion is to perform replication of on-premises databases to Azure SQL Database or use SQL Data Sync so you can have an always updated copy of on-premises databases on Azure SQL Database and you can then query them as local tables or with elastic queries on Azure SQL Database.

Connecting to an external MS SQL Database using Azure

I published my website using Azure and when I go to the sie I'm getting a SQL error:
SqlException (0x80131904): A network-related or instance-specific error occurred while establishing a connection to SQL Server.
I am assuming:
That Azure cannot find/process the connection to the external MS SQL server that is in the web.config file. I know that the settings are correct because when I launch the site locally, it connects to the database and retrieve the data.
It could also be that I'm using the free (one month) subscription and I'm not sure if that feature is supported.
I found an article (http://blog.davidebbo.com/2012/09/managing-database-connections-in-azure.html) that spoke about "Managing database connections in Azure Web Sites", but I cannot seem to be able to replicate the steps necessary to achieve this external connection.
I think it is nothing to do with your webapp or Azure Subscription. I understand that you are trying to connect your on premise database from your Azure app. It wont work directly and you need to establish a hybrid connection for the same. You can find the guidance here.

Resources