DBeaver connection to Azure Synapse Analytics - azure-synapse

I would like to query data from Azure Synapse Analytics with DBeaver.
I am using the community version of DBeaver
On the machine which I am running DBeaver, I have installed the MS SQL Server ODBC driver
I have created the connection to Azure Synapse Analytics and it is successfully connecting to the server/instance
On the 'Database Navigator', when I do a drop down list on my connection, I see the different SQL Pools/Databases that I have created.
When I do a drop down on each database, I only see the schemas 'dbo', 'INFORMATION_SCHEMA' and 'sys'. But I do not see the schemas that I have created.
When I do a drop down on each schema, I see tables, views, indexes, procedures, data types. When I do a drop down on 'tables' or 'views', I do not see anything.
Has someone tried querying data from Synapse Analytics with DBeaver ?
Has someone also experienced the same, not able to see all the schemas or to read any tables ?
Thank you for your help!

The easiest method is to choose to connect to 'Azure SQL Server':
Then, on the next screen, all you need to do is fill in the Host, Username, and Password. The Host is the value you get from your Synapse Workspace for the Serverless SQL endpoint.
Like this:
Then it should connect successfully. 👍

Related

Lake Database converts into a SQL Database in Azure Synapse Analytics

Forgive me I am newbie here and I cannot post images just yet.
Lately I am having few issues with Lake Database that was created in Azure Synapse Analytics using Azure Synapse Link for Dataverse database in PowerApps.
Dynamics365 developers were adding new columns to Dataverse database and they are not displaying or working when executing queries in SSMS or Synapse Studio.
Therefore I have unlinked the Synapse Link in PowerApps and relinked with some tables.
When I unlink, the container and Lake database were deleting correctly but the same database appears in SQL databases section in Azure Synapse studio. I tried to delete it but I am getting an error "Operation DROP DATABASE is not allowed for a replicated database".
Before unlink
After unlink
I have created the Lake database again using Synapse link from PowerApps but it seems the tables meta data is not updating.
Can anyone help me with the above issues (in bold) please.
an error "Operation DROP DATABASE is not allowed for a replicated database".
This error is returned when you try to create objects in a database that's shared with Spark pool. The databases that are replicated from Apache Spark pools are read only. You can't create new objects into a replicated database by using T-SQL.
Create a separate database and reference the synchronized tables by using three-part names and cross-database queries.
Dynamics365 developers were adding new columns to Dataverse database
and they are not displaying or working when executing queries in SSMS
or Synapse Studio.
This issue could be because of many reasons. Without knowing the actual reason, we can't troubleshoot this issue.
If we refer Microsoft official document on Known limitations and issues with Azure Synapse Link for SQL if your column data type isn't supported by the Azure Synapse Analytics, it won't be replicated in Azure Synapse Analytics.

SQL Server (azure managed instance): only sys admins can see tables in explorer

Hey I'm a dba using sql server (azure managed instance).
For some reason only sys admins are able to see database tables/objects.
For example, if I create a new user on a database and they connect via ssms. They cannot see the tables HOWEVER, they can run queries e.g Select * from table1, despite not seeing it in explorer.
Any ideas? Thanks
I created a user with read permissions mapped to the database but they cannot see the tables in ssms, they can write queries with the tables and also see the tables in powerbi but not ssms

Backup users in Azure SQL Database

IN my scenario need to take azure sql database backup and restore in another azure sql database server.I have done it using Export and Import . But i need to take the backup of users from one DB to another with permissions.
You can use the script for creating a script that can be run on the exported/imported database to create users. Here is the script -
https://dba.stackexchange.com/questions/190475/scripting-out-database-user-level-permissions
If the need is to move the On premises Logins to Azure SQL DB:There is a utility to move On-Premises SQL Server Logins to Azure SQL DB.
This scenario is documented in the Data Migration Assistant guide
Hope this helps.
Thanks
Navtej S

Migrate SQL Server database to Azure along with database email and jobs

I am new to SQL Azure, we have taken the subscription of Azure SQL elastic pool.
I have two databases in my local SQL Server and it has a stored procedure which internally is calling msdb.dbo.sp_send_dbmail and I have scheduled these stored procedures to run in a job (SQL Server Agent -> Scheduler).
I want to move these two databases along with DB-mail accounts and SQL Server jobs to Azure. I am finding difficulties as in my subscription I am not able to see msdb, SQL Server Agent and database email. We want to go with only SQL Azure as service, no need your support on these.
I tried to deploy the database and getting the error message:
Error
SQL71562: Error validating element [dbo].[AMPLoanAgingEMail]:
Procedure: [dbo].[AMPLoanAgingEMail] has an unresolved reference to object [msdb].[dbo].[sp_send_dbmail].[#profile_name]. External references are not supported when creating a package from this platform.
The expected result is I want to move those scheduled jobs and stored procedures to my Azure.
Azure SQL database doesn't support msdb database. We can not migrate msdb to Azure or do anything with it in Azure SQL database.
For more details, please see: msdb database.
SQL server agent is only supported Azure SQL Managed Instance only.
Database email also is not supported in Azure SQL Database.
This why you can not be able to see msdb , SQL server agent and database email.
Your stored procedure [dbo].[AMPLoanAgingEMail] could not call the [msdb].[dbo].[sp_send_dbmail] in msdb. The error message also mentioned that.
For now, there isn't a solution for msdb in Azrue SQL Database.
Before migrate your database to Azure SQL database, you can use Data Migration Assistant(DMA) to help you assess your database.
Hope this helps.

Why SQL Data Sync requires Alter Database permission on SQL Server on premise DB?

We are using SQL data sync tool to syncronize on premise DB with cloud. But while provisioning, the data sync throws up the error message that it requires ALTER DATABASE.permission for the SQL id on SQL Server on-premise Database. We did lot of digging to find out the reason and it looks like it uses ALTER DATABASE command to change the <change_tracking_option>. Does this mean if <change_tracking_option> is enabled, it will not create the change tracking triggers for each tables? But if it does create it , then why it requires ALTER DATABASE permission?
SQL Azure Data Sync is based on the Sync Framework and I think this is happening because the Sync Framework is trying to enable snapshot isolation on your database.