OLDB connection string to connect Cloud SQL db - vba

I am looking for the connection string to connect to SQL server on Azure Cloud
used below string to connect to SQL user
OLEDB;Provider=SQLOLEDB;Data Source=#DATASOURCE#;Initial Catalog=#CATALOG#;UID=userid;Password=pwd;
this is working fine. but when I try connecting with windows user I need to update the connection string as
ODBC;Driver={ODBC Driver 17 for SQL Server};Provider=SQLOLEDB;Data Source=#DATASOURCE#;Initial Catalog=#CATALOG#;Encrypt=yes;TrustServerCertificate=no;Authentication=ActiveDirectoryInteractive;UID=myemailid
Is there a way I can use OLEDB driver to connect using windows authentication?
thanks in advance for help

No, we can't. Azure SQL database doesn't support Windows authentication for now.
Azure SQL Database only supports two types of authentication: SQL Authentication and Azure Active Directory Authentication.
No matter which driver you use to connect the Azure SQL database, the windows authentication won't work.
For more details, please ref this document: Authorize database access to SQL Database, SQL Managed Instance, and Azure Synapse Analytics

Related

How to configure Azure AD in SQL Server for authentication?

We need to configure Azure SQL server with Azure AD such that while connecting to Azure SQL server through JDBC our users should be able to use their AD username and password.
We are unable to find documentations on how to setup Azure AD with Azure SQL server.
We are looking for some documentation or some steps to configure Azure AD with Azure SQL server.
Firstly, while creating the Azure SQL Server, you need to make sure to choose Use only Azure Active Directory (Azure AD) Authentication in Authentication method option.
The JDBC driver allows you to specify your Azure Active Directory
credentials in the JDBC connection string to connect to Azure SQL
Database.
To know how to configure Azure Active Directory authentication visit Microsoft official document Connecting to SQL Database By Using Azure Active Directory Authentication.
To connect the Azure SQL Database with Azure AD through JDBC, there is a proper setup required in which you need to install and configure some prerequisites. This official document from Microsoft will guide you to do same.

snowflake odbc driver externalbrowser sso authentication

I've setup a system DSN to connect to a snowflake server.
When I do something as basic as using the SQL Import/Export wizard to transfer the contents of a single table from snowflake to an on-prem SQL server, why does snowflake execute the challenge request 6 times!?
Have you tried the connection caching feature? I've heard good things if your team would be willing to test, perhaps first with a non-prod account.

Not able to connect to Azure SQL Server via Dremio

We were not able add Azure SQL Server as external data source in Dremio. We have disabled the firewall to allow all access (at the Azure SQL Server end) to connect to Azure SQL Server, but it was still throwing an error and it was not able to connect from Dremio.
Please let us know if we will need to configure a firewall on route from the Dremio server end to connect to the Azure SQL Server.
Error output:
> Error : Could not connect to intake-dev,
> check your JDBC connection information and credentials.
Note: We have checked that the credentials passed are accurate, and we were able to connect from SSMS using these.
Unfortunately, Dremio does not support Azure SQL Server as a source.
Check this post on dremio community.

PowerBI using AD

I am trying connect to Azure SQL database with PowerBI using AD Authentication. Basically we want users of the PowerBI report to use their own AD credentials when they connect to the database.
Using windows authentication I can connect to the Azure SQL via SSMS. But when I try the exact same way via PowerBI its says "user was not authorized"
I have on Azure SQL Server created a AD user (FROM EXTERNAL) that is my AD User.
Am I missing something?
Please ensure firewall rules for the SQL Azure database are configured to "Allow access to Azure services".
Currently Power BI doesn’t support AAD authentication when connecting to Azure SQL Database, but using Microsoft ODBC Driver 13 it is possible to do it as explained here.
ODBC (for AD PW Auth; must have ODBC Drive 13 for SQL Server)
Driver={ODBC Driver 13 for SQL Server};Server=<servernamehere>;Database=<databasenamehere>;Encrypt=yes;TrustServerCertificate=no;Connection Timeout=30;Authentication=ActiveDirectoryPassword

How can I connect an Azure application using Windows Authentication to onpremise SQL DB

How can I connect an Azure application using Windows Authentication to onpremise SQL DB.
I have a site to site connection established to a machine now I want to create an application using Windows Authentication and connect to on premise SQL DB and do all the DML operations.
How can I achieve this.
Thanks in Advance.
Regards,
Suresh