I try to connect from On-Premise SSRS 2016 (SQL Server Reporting Services) to Dataverse (Azure SQL Database).
Dataverse must be added as an additional data source to my SSRS reporting.
The company does not use Power BI.
As far as I know, SSRS does not support Active Directory MFA authentication out of the box.
I already started a thread here: Connect TO Online SQL Azure DB FROM On-Premise SQL Server SSRS
In Azure AD Portal I deactivated the Multi-Factor-Authentication on my AD user, but still I'm getting the error:
Cannot use 'Authentication=Active Directory Integrated' with 'User ID', 'UID', 'Password' or 'PWD' connection string keywords.
My connection string looks like this:
Server=myServer.dynamics.com,5558; Authentication=Active Directory Password; Database=myDb; User Id=myUser#myDomain.com; Password=myPassword;
So far I haven't found any way to connect from SSRS to Dataverse, do you have an idea if that's possible and how?
To connect from On-Premise SSRS 2016 (SQL Server Reporting Services) to Dataverse (Azure SQL Database).
First give the name to DataSource, then select connection type as Microsoft Azure SQL Database, then click on Build....
Sample connection string: Data Source=ServerName;Initial Catalog=DatabaseName; Encrypt=True;
ServerName: Microsoft Azure Server Name
DatabaseName: Database Name
Add your Microsoft Azure Server Name , As document suggest it only support SQL Authentication Select Use SQL Server Authentication Enter Username and Password , then Select Database you want to, click on Test Connection then Click on Ok
It will Automatically Generate the connection string, Click on Test connection, Enter Username and Password, Click on Ok
And your data source is created Successfully.
Related
I am new to azure app service, i have used visual studio to deploy my web api to azure api management. i am doing a mobile application project, I need to make local ssms database data sync to azure cloud. because my web api is connect to ssms database, and it has error when i am testing it in azure api management, it response 500 internal server error, but i have the weatherforecast GET Sample, and this api work normal, it response 200 ok. i don't know what i have done wrong to the web api or i set up wrong in the azure.
ScreenShots:
Check the below steps to deploy sync the local DB to Azure SQL Server.
I need to make local ssms database data sync to azure cloud.
In Azure Portal => Create a new SQL Database Server.
Set Admin
In Local DB => Right click on the DB => Tasks =>select Deploy Database to Microsoft Azure SQL Database.
Click on Connect , provide the Server name from Azure Portal (SQL Server Overview page).
Initially I got the below error.
To access/ Connect Azure SQL DB , we need to enable Public network access and add Firewall rules in Azure SQL Server.
Now I have connected to Azure SQL server and deployed local DB Test to Azure SQL Server without any issues.
SQL Database in Azure contains all the data which we have in local DB.
Now if we want to make any changes to the DB, from SSMS we need to connect to the Azure SQL DB and make required changes.
I have inserted data by connecting Azure SQL DB , you can see the changes in portal.
Now we need to provide the Azure SQL Connection string in the Web.config file of the ASP.Net Web API.
Copy the connection string from Azure SQL DB and paste it in the Web.config file.
Replace the password with your Password.
I have an Azure SQL Server resource for which I'm the Azure AD admin. I have provided the resource access "Contributor" to another user who cannot access the database through SQL Server Management Studio as he is receiving the following error using the correct server and database name with Azure authentication using MFA option:
Then, we thought of switching to Azure Data Studio, somehow the database is getting connected there but in there, the issue is that the user cannot alter the table designs, as the following error pops up:
What can be done to possibly sort at least one of the issues?
For ADS and SSMS, User is created within database with db_datareader, db_datawriter and db_ddladmin rights. He has a contributor role to the Azure SQL Server instance.
In SSMS, sometimes while connecting to the database, it accesses the database which tries to connect to the master db. We have tried entering the database name manually still the same error.
Under the SQL Server -> Azure AD Admin -> I have even tried to set that user as the admin, even then the SSMS shows the same error.
Please help.
For the SSMS Connection to Azure SQL Server with MFA:
If you are connecting from SSMS you may also need to change the default database option. By default, it will try to connect to master DB where this user may not exist there as AAD users are contained inside each user database.
In the SSMS Connect Explorer > Options - Connection properties - Give the Database Name and in the Login Tab > Authentication as Azure AD - Universal with MFA and username is your Azure Account username.
I have made my user as SQL Server Admin in the Azure Portal.
While creating the SQL Server, selected the sample database provided by Azure and I have changed the design of the table, it is working as expected.
For the Azure Data Studio connection to the Azure SQL Server:
I have given below details in Data Studio Explorer to connect and it connected Successfully:
Added a column to the existing Table:
Result:
Note:
To use the SQL Server Authentication as Azure AD with Universal MFA, the user account must be Azure AD Account.
Make that user as Azure SQL - AD Admin and following the steps as #Junnas said here - Create the user with Grant Permissions for working on the database using either database roles or database permissions.
Also Give the Contributor role to that user on the Azure SQL Server Instance Level by going to Azure Portal > SQL Server > Access Control > Add Role Assignment either to SQL Server Contributor or SQL DB Contributor:
Contributor role does nothing for SQL database access.
It only gives access to Azure resource management APIs; SQL endpoints are not under those APIs.
The user must be added in the database with something like:
CREATE USER [test.user#example.com] FROM EXTERNAL PROVIDER;
-- Grant permissions etc.
Then the user should select "Azure Active Directory - Universal with MFA support" as the authentication type.
They also need to ensure the target database is selected, not master.
I think the user also needs to ensure the right Azure AD tenant is selected.
In Azure Data Studio there is a selection for it.
Scenarios:
I have to move data from an on-premise SQL Server database to Azure SQL database using Azure Data Factory pipeline.
I have created a self-hosted linked service for on-premises database and provided managed identity access to Azure SQL database for the ADF account.
Linked Service Configuration:
IR Configuration: Azure Managed Virtual Run time.
I tried with both SQL Authentication type and System assigned managed identity.
Test Connection is giving successful and we are able to do select operation individually by Azure SQL Server
Getting below error while doing insert when running the pipeline.
Error:
ErrorCode=SqlFailedToConnect,'Type=Microsoft.DataTransfer.Common.Shared.HybridDeliveryException,Message=Cannot connect to SQL Database: '', Database: '', User: ''. Check the linked service configuration is correct, and make sure the SQL Database firewall allows the integration runtime to access., Source=Microsoft.DataTransfer.ClientLibrary,''Type=System.Data.SqlClient.SqlException,Message=Cannot open server "" requested by the login. The login failed.,Source=.Net SqlClient Data Provider,SqlErrorNumber=40532,Class=14,ErrorCode=-2146232060,State=1,Errors=[{Class=14,Number=40532,State=1,Message=Cannot open server "*****" requested by the login. The login failed.,},],'
In copy activity, in case if either the source or the sink is leveraging an IR, than it is expected that both the source and sink should be accessible from the server containing the IR.
So to debug : please login into the Server hosting the IR and check whether you are able to access the Azure DB from that server. If not than please whietlist the IP and make the necessary port updates
I am migrating from an on-prem SQL database and on-prem SharePoint server to Azure SQL Database and SharePoint Online.
In the current setup I have a SharePoint library containing Excel files that contain data from the SQL database. The connection is defined in an odc file. Excel Services Authentication is setup in this odc using a stored account. This allows data refresh from Excel Web App.
I am trying to setup the same thing in our new environment, but can't find any information on how to set it up. I have tried creating an excel file with a connection to the Azure SQL database and uploading that into a document library in SharePoint Online. If I open the workbook in the browser and click refresh data I get an error saying unable to refresh one or more data connections. If I open in the Desktop App then I can refresh without any issues. Is what I'm trying to achieve possible or do I need to rethink the setup?
Azure SQL Database is not supported. Azure SQL Managed Instance is supported with SharePoint Servers 2016 and 2019. See all the SQL Server options for SharePoint Server.
For SharePoint online you need Business Connectivity Services (BCS) to connect with data services and although the following document: Manage Business Connectivity Service Applications references Azure SQL Database, I believe that Azure SQL Managed Instance is supported but not Azure SQL Database. SQL Managed Instance is a full featured SQL Server instance on an Azure VM. SQL Database is a PaaS service with a subset of SQL Server functionality.
Current Environment: I have been given Reader and SQL DB Contributor access to a resource group in Azure which has all the Azure SQL databases and the related Azure SQL server. I have 10 databases under the same server and within the same resource group.
Problem: When I try to connect to this server via SSMS using "Azure Active Directory - Password" I can not connect and get the "Login failed for user NT Authority\Anonymous Logon" error with error code 18456. But when I provide the database name in the connection properties in the login window of SSMS I can connect but now I can only view one database.
Question: I am trying to find out what's the reason for this behavior? As I have "SQL DB Contributor" access, shouldn't I be able to connect to the server and view all databases? Is "SQL Server Contributor" a requirement to connect to Azure SQL Server without specifying a Database name?
To connect to the server and view all your databases on SQL Server Management Studio you need to connect to the master database on that server and it will show you all databases listed on SSMS Object Explorer. If you connect to a user database SSMS won't show you the rest of the databases.
Get connected to the master database using the server Admin account.
If you are using an Azure Active Directory account make sure you add the the account as Azure SQL Administrator as shown here.