azure-database | Azure Database ( Table Storage | Azure library
kandi X-RAY | azure-database Summary
kandi X-RAY | azure-database Summary
Azure Database (Table Storage, Cosmos DB and more) module for Nest framework (node.js).
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of azure-database
azure-database Key Features
azure-database Examples and Code Snippets
Community Discussions
Trending Discussions on azure-database
QUESTION
Based on this documentation of Azure, there should be a Data encryption option under Security. But I don't see any option of Security.
Is there a way to enable that option?
...ANSWER
Answered 2022-Mar-07 at 06:47While deploying the Azure PostgreSQL single server, in Additional settings you can see below statement:
The storage used for database and backup is encrypted by default with service managed keys. Infrastructure Double Encryption is an additional infrastructure encryption layer using a secondary service managed key. Turning it ON can impact database performance.
Therefore, you don't need additional encryption for your data.
If you want double encryption for really sensitive data, you can enable Infrastructure double encryption option.
You can also refer my answer on this SO thread if you need to implement SSL certificate in Azure PostgreSQL account.
QUESTION
I'm trying to export our production Azure SQL database to local for testing purposes. I've made a copy of the database but get the following error when trying to Export.
One or more unsupported elements were found in the schema used as part of a data package. Error SQL71501: Error validating element [dss]: Schema: [dss] has an unresolved reference to object [##MS_SyncAccount##]. Error SQL71501: Error validating element [TaskHosting]: Schema: [TaskHosting] has an unresolved reference to object [##MS_SyncAccount##].
I've found this article explaining how to get around this issue:
My question is, will running the script below (from the article) on the copied database affect only the copy's data sync meta data, or is there a risk that it will affect our production database or server in any way?
Many thanks
...ANSWER
Answered 2021-Dec-07 at 04:01The script provided in the link will only clean up sync database objects, you can check the schema name mentioned in the where condition. If you want to be more sure you can just run the select statements and re-verify the objects against the main database.
As an example, below statement would fetch stored procedures with specific schema name mentioned in the where clause.
QUESTION
I have a MySQL database on Azure, using the Azure managed database service, and two Ubuntu 20.04 VMs (running PHP applications) in the same VNET. I can connect to the database from both PHP, and from a remote GUI client (SequelPro), so I'm confident the firewall is configured correctly and I'm using the right details.
However, when I try to connect using the mysql CLI client on either of the VMs, it just hangs with no output. I've tried on both VMs, I get the same behaviour.
The command I'm using is:
mysql -u "username@hostname" -p -h "ip_address" -P 3306 database_name -e "SHOW TABLES"
It prompts for the password, so I enter it... and then nothing. On top
the mysql process is consuming 100% of CPU.
I can telnet port 3306 on the IP address, I get the usual gibberish asking for mysql_native_password.
If I change the hostname part of the username@hostname
to an invalid hostname, then it says "The servername cannot be found". Whereas if I enter an invalid username (or an invalid password) then it hangs just the same. So I'm guessing this has something to do with the gateway part of Azure managed database service that's trying to resolve that name. Everything was working normally up until a few days ago.
There's nothing in any of the logs, and no output on the screen, so I can't work out where to begin trying to fix this.
...ANSWER
Answered 2021-Nov-04 at 17:30This appears to be due to https://bugs.mysql.com/bug.php?id=105288 assuming your client is 8.0.27, i hit the same issue today.
QUESTION
We have a curious issue with our Azure SQL database with AAD authentication.
We have created a role (dbt_user
) with all permissions, and excluded some schemas:
ANSWER
Answered 2021-Sep-20 at 13:46Assuming you have AAD admin rights,
When user1
a member of the myAADGroup
group, logs in and tries to create a new SCHEMA. A new schema will be created in the database. If any other member within this group, say user2
tries to CREATE SCHEMA, an Invalid Object Name error will be shown. Also, default_schema_name
is Null
for principals not of type SQL user, Windows user, or Application role.
This security issue is resolved by assigning a default schema for Groups.
QUESTION
I'm using the library Devart.Data.PostgreSql (https://www.nuget.org/packages/Devart.Data.PostgreSql/) to interact with PostgreSQL from a C# application, but I run into problems when I try to connect to a PostgreSQL instance hosted in Azure that enforces TLS 1.2. From what I understand there is a problem with ciphers not being able to match during the handshake as I end up with this exception:
...ANSWER
Answered 2021-May-25 at 08:02Full support of TLS 1.2 in SSL connections for .NET Standard (.NET Core) Projects was implemented in dotConnect for PostgreSQL v7.20.1860 01-Apr-21.
With .NET Framework projects, use assemblies compiled for .NET Framework 4.7:
- "C:\Program Files (x86)\Devart\dotConnect\PostgreSQL\NET4\Devart.Data.dll"
- "C:\Program Files (x86)\Devart\dotConnect\PostgreSQL\NET4\Devart.Data.PostgreSql.dll"
Please select the "Do not install assemblies in the GAC" option in Setup Wizard. Otherwise, the runtime will use assemblies compiled for .NET Framework 2.0 from GAC.
QUESTION
I know Azure does its own backups in the cloud. However, due to company policy I need to generate a local backup copy of the database and be date-time stamped.
I've read this, and it has allowed me to create a .bacpac
file and import it into our on-prem SQL server (2019). What I want is a way to save the bacpac file on a network folder, on a regular basis.
UPDATE - no I don't have to, store the bacpac file in an on-prem database. I only mentioned it to say, yes I can do this extra step. What I really want is to simply save the bacpac file, date-stamped in the filename, and in a network folder on-prem.
...ANSWER
Answered 2021-Mar-29 at 01:45If you don't mind use third-part tool to regular backup Azure SQL database to local, please ref this blog: How to backup Azure SQL Database to Local Machine. It provides all the way to backup the Azure database to local, include regular backup features.
This blog provide the tools SqlBackupAndFtp to help us regular backup the database. The output .bacpac
backup file name schema example like this: Mydatabase202103250956
, databasename+date.
It also give the tutorial to Backup Azure SQL Database Using BCP Utility:
QUESTION
I am learning azure from Microsoft learn using this link. Does anyone know the basic difference between "Azure Database for MySQL" and "Azure SQL Database"? Both seem very similar.
As I am a beginner, can anyone explain the difference in an easy way?
...ANSWER
Answered 2021-Jan-07 at 14:37Mysql is opensource database, where as when you say SQL it refers to Microsoft SQL Server. In general both are two different types of databases. Microsoft SQL Server is a licensed version.
When you prefix them with Azure, it means they are hosted on cloud , i.e Azure cloud and Microsoft manages them as PAAS(platform as a service).
Kindly let me know if you need more information.
QUESTION
I have connected my NestJS project with a CosmosDB database using the @nestjs/azure-database package. I have successfully created a first item in my database, but whenever I try to add another one (create function), it gives me following error:
...ANSWER
Answered 2020-Oct-23 at 07:44I solved the issue by removing the container in Cosmos DB and then restarting my program, thereby creating a new container with the correct PartitionKey. Updating an existing one apparently does not work.
QUESTION
Using Matlab and its database toolbox, I need to connect to an Azure server using Microsoft SQL, using the Azure ActiveDirectoryPassword
authentication mode. However Azure active directory connections are not natively supported, and some extra steps are required. Matlab uses Java, so it is via Java drivers and libraries that I need to set up the connection to my database. In the latest iteration of me trying to solve this issue, I encounter the following connection error: JDBC Driver Error: Failed to load ADAL4J Java library for performing ActiveDirectoryPassword authentication.
Via this somewhat related question: https://forum.knime.com/t/connect-to-azure-database/20585, I was referred to the Microsoft page on how to setup the connection: https://docs.microsoft.com/en-us/sql/connect/jdbc/connecting-using-azure-active-directory-authentication?view=sql-server-ver15. The instructions on this page tell me On the client machine (on which, you want to run the example), download the azure-activedirectory-library-for-java library and its dependencies, and include them in the Java build path
.
Following up, the Microsoft webpage forwards me to the Github page, to install the ADAL libraries.
Now, here the confusion continues, because I have zero clue what to do next. I don't know any Java, and I am not even using Java directly as everything runs via Matlab functionality that uses Java in the background (The only thing I do is use a connection URL to setup the connection to the database). The help files on the ADAL/MSAL Github are unclear for a novice like me and do not seem to be focused towards helping simple Windows users setup all the libraries. So I am looking for help to get everything running.
What is currently running?
- Operating system: Windows 10 64-bit on server infrastructure
- Java: on the pc in question AdoptOpenJDK Java is installed, version
jdk-8.0.265.01-hotspot
- Matlab: I have two setups that I need to get working, Matlab 2017a and Matlab 2020a. Matlab 2017a only supports up to Java 7 and Matlab 2020a works with Java 8. It also seems that (some parts of) Java are shipped with Matlab. Using the
version -java
command in Matlab, I obtain the following information:- Matlab 2017a:
Java 1.7.0_60-b19 with Oracle Corporation Java HotSpot(TM) 64-Bit Server VM mixed mode
- Matlab 2020a:
Java 1.8.0_202-b08 with Oracle Corporation Java HotSpot(TM) 64-Bit Server VM mixed mode
- Matlab 2017a:
- JDBC-driver: via Microsoft JDBC I downloaded two versions of JDBC drivers:
Microsoft JDBC DRIVER 6.4 for SQL Server
andMicrosoft JDBC DRIVER 8.4 for SQL Server
. Matlab 2017a will use driver 6.4 (because it uses Java 7) and Matlab 2020a will use driver 8.4.
My questions:
- Do I use ADAL or MSAL?
- How do I get the library I need included in Java such that Matlab can use it?
What I tried:
- I downloaded the .jar file for MSAL and included it in the
javaclasspath
of Matlab, hoping that that would include the MSAL-library in Matlab-Java. Unfortunately that doesn't work. - I looked at the ADAL github, trying to figure out how to get that integrated into Java. However I do not understand how to make that happen.
Any help would be greatly appreciated, thank you!
...ANSWER
Answered 2020-Sep-25 at 09:26After further inquiries with MathWorks I was able to resolve my issue. The main problem was that I was missing the ADAL library and all its dependencies. After installing them, I was able to connect to the database. In the end, this was the setup that got everything working.
- Java: At first we installed the AdoptOpenJDK Java, but that was a mistake and not necessary
- What I did: I rolled back to the native Matlab Java. I removed all references to the new Java in the Environmental Variables such that Matlab could only use the default Java that it is shipped with.
- JDBC driver: Is it strictly necessary to use the JDBC driver, or could you use an ODBC connection as well? I don't exactly know the answer to this question. In Matlab it seems that if you want to programmatically, via a script, connect to the database, you need/want to use a JDBC driver. Although this was not explicitly stated by the MathWorks support staff, they did not suggest to use ODBC either
- What I did: Use the latest JDBC driver that still supports the default Java version of Matlab,
Microsoft JDBC DRIVER 6.4 for SQL Server
for Matlab 2017a (it still uses Java 7) andMicrosoft JDBC DRIVER 8.4 for SQL Server
for Matlab 2020a (it uses Java 8)
- What I did: Use the latest JDBC driver that still supports the default Java version of Matlab,
- ADAL libraries: Matlab requires the ADAL4J library and all of its dependencies. From this I conclude that using MSAL4J is not a possibility. I got the necessary libraries directly from MathWork, so I have no clue on how to obtain them. The libraries I used are:
QUESTION
I am new to SQL Server authentication methodologies. I am trying to learn to create a read-only user who can access Azure SQL data from Power BI. I have followed the steps and created a login and user as suggested in this post. I am able to login to the database using 'login' and password as suggested here.
My concern is, as I created the user and assigned him the role of the 'db_datareader'; how does this guarantee that I can't modify something in another database(as there can be multiple user associated with login with a different role)? Is there any way I can directly login to the database using username?
...ANSWER
Answered 2020-Jun-25 at 02:03About concerns:
My concern is, as I created the user and assigned him the role of the 'db_datareader'; how does this guarantee that I can't modify something in another database(as there can be multiple user associated with login with a different role)? Is there any way I can directly login to the database using username?
As we know, when we create the read-only user, we need follow bellow steps:
- Create the Login in master DB.
- Create the read-only user in user DB and mapping to the login.
- Alter the 'db_datareader' role to the read-only user.
For Azure SQL database, the Login is used to login the Azure SQL Server and the user to access the database.
We can not alter database role to the login, it must be user level.
One login for one user. If you only grant the 'db_datareader' role to the user, it will be the read-only user for the current database.
For example, if the user "A" is created in database A, it only has the access permission to database A. If you only grant the 'db_datareader' role to the "A", it will be the read-only user.
Ref: https://docs.microsoft.com/en-us/azure/azure-sql/database/logins-create-manage
Hope this helps.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install azure-database
For Table Storage, In the Azure Portal, go to Dashboard > Storage > your-storage-account.
Note down the "Storage account name" and "Connection string" obtained at Access keys under Settings tab.
Create a Cosmos DB account and resource (read more)
For Cosmos DB, In the Azure Portal, go to Dashboard > Azure Cosmos DB > your-cosmos-db-account.
Note down the "URI" and "Primary Key" obtained at Keys under Settings tab.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page