database-engine | LSM-Tree Key-Value Store based on RocksDB | Key Value Database library
kandi X-RAY | database-engine Summary
kandi X-RAY | database-engine Summary
LSM-Tree Key-Value Store based on RocksDB
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 database-engine
database-engine Key Features
database-engine Examples and Code Snippets
Community Discussions
Trending Discussions on database-engine
QUESTION
I am trying to implement fault tolerance and trying to collect a list of SQL error numbers that are considered transient. but I keep running into error numbers that have multiple documentations.
Consider error number 10053:
(1) A transport-level error has occurred when receiving results from the server
(from here)
(2) Could not convert the data value due to reasons other than sign mismatch or overflow.
(from here)
It gets weirder. Consider error number 11001:
(1) Non-NULL value successfully returned.
(2) An error has occurred while establishing a connection to the server....
Both from the same Microsoft docs page adjacent to each other.
What's going on?
...ANSWER
Answered 2021-May-10 at 07:35As @Jeroen Mostert said,
Error 10053 means that an established connection has been dropped.
- An established connection was aborted by the software in your host machine.
- The TCP/IP Connection was aborted by Windows. This was possibly due to a data transmission timeout or protocol error.
- The virtual circuit was terminated due to a time-out or other failure. The application should close the socket as it is no longer usable.
SQL server error 11001 occurs when the SQL Server can't be found on Network. This happens if the IP address is not reachable or the TCP port number is either not open or is not the correct port number or is blocked by a firewall
- This error mainly occurs when the SQL Server client can't connect to the server. This may happen when the client cannot resolve the name of the server or the name of the server is incorrect.
So we should check firewall list in Azure sql first.
QUESTION
I would like to get alerts when certain database errors occur. For instance, if a table or stored procedure is queried against that no longer exists, I want an alert.
I've tried creating alerts for these error codes (208, 2812) but they never trigger, no doubt due to the fact that there are only a handful of error codes that are logged, according to the docs.
From sys.messages:
Error Severity Event Logged Description 208 16 No Invalid object name '%.*ls'. 2812 16 No Could not find stored procedure '%.*ls'.Is there a way to change the event logged status?
...ANSWER
Answered 2021-Feb-18 at 18:26Turns out there's a SP to do it, sp_altermessage
. Docs
exec SP_ALTERMESSAGE 208, 'WITH_LOG', 'TRUE'
QUESTION
I have a script that makes a backup of 3 sql databases.
I've attached the full script and its output in the two code blocks below. Don't be intimidated by their size, i'm simply calling the powershell cmdlet Backup-SqlDatabase
at some point.
Backup-SqlDatabase documentation
https://docs.microsoft.com/en-us/powershell/module/sqlserver/backup-sqldatabase?view=sqlserver-ps
...ANSWER
Answered 2021-Feb-08 at 10:06My answer would not explain how to use the Backup-SqlDatabase
in PowerShell, nor how to configure permissions needed to run this cmdlet.
When I wanted to backup a database with a PowerShell script I did not use the Backup-SqlDatabase
cmdlet. I prefer to compose a native SQL BACKUP DATABASE
command.
So, I created two files. One was a PowerShell script, another was a SQL script.
make_backup.sql
has a BACKUP DATABASE
command:
QUESTION
I have a .net framework 4.7.2 app with entity framework 6.1.2. The app uses an azure sql database which has -among others- a table with encrypted data. We have used the Always Encrypt feature of sql server in order to encrypt these data. The database schema is shown below.
The field Description in table Order is nvarchar(100) and the field Description in Note is nvarchar(100) and encrypted with Always Encrypt (deterministic encryption). Both columns are nullable and have a non-clustered index on them. Both tables have a few tens of millions of records.
We have the following query in our code: var user = DbContext.Set().FirstOrDefault(u => u.Notes.Any(n => n.Description == value));
This query used to run with with normal performance cost (few dozens msecs) before
encrypting the field in our db. This completely changed after the encryption. The execution time changed to a few tens of secs.
I rebuilt all indexes but it changed nothing.The above code statement is translated from entity framework into something like:
...ANSWER
Answered 2020-Oct-23 at 14:19I suspect this has nothing to do with encryption, and everything to do with this catch-all
clause :
QUESTION
Context: I'm trying to use SQL Server's Polybase to query data in parquet files. One of the steps required to do so is to create an external file format that maps to parquet. MSDN provides SQL sample below.
...ANSWER
Answered 2020-Oct-06 at 20:36Turns out issue was Polybase services weren't running. I was able to run them in the sql server configuraion manager under sql server network configuration. This was helpful: https://www.sqlservercentral.com/forums/topic/polybase-syntax-error
QUESTION
I know this question is repeated (Grant Select on a view not base table when base table is in a different database), but I have tried the proposed solution, without any luck.
My idea is grant limited access to data in certain databases through an intermediate database in which I create views. I do this to avoid granting specific permission on external tables every time I create a view. This is what I do:
- I have User_A and User_B
- User_A creates DATABASE_A1 and DATABASE_A2
- User_A creates VIEW_A in DATABASE_A1 that reads data from DATABASE_A2
- I set db_dataread role to User_B in DATABASE_A1, so they now can execute VIEW_A
- If User_B tries to execute VIEW_A, receives the message "The server principal 'User_B' is not able to access the database 'DATABASE_A2' under the current security context", which I expected, as the user has no rights on this database
- I then activate 'cross db ownership chaining' in both databases (not sure if I only need doing it in one), with these commands:
ANSWER
Answered 2020-Sep-16 at 12:41You need to create the user in the other database (without granting any rights).
QUESTION
The main memory on the host is limited and hence the Bufferpool size for the mysql engine. Wondering whether any known solution for the MYSQL which allows the buffer pool extension to a nonvolatile random access memory (that is, solid-state drive or EBS volume in case of AWS infra) extension to the Database Engine.
[EDIT] I am able to find very old doc for sql server but didn't find anything on mysql. I am looking for any existing solution for mysql engine/innodb or good reference points for how to add that feature.
Reference
...ANSWER
Answered 2020-Jun-28 at 21:48MySQL does not have a feature like Microsoft SQL Server's buffer pool extension.
Most operating systems allow RAM to be extended by disk storage. It's called swap space. The idea is that if processes use more virtual memory than fits in the physical RAM of the system, some amount of storage space can be used.
The problem is, even the best SSD drive is about 10,000 times slower than RAM. If you rely on swap space on an SSD to supplement MySQL's buffer pool, then MySQL will be so slow as to be unusable.
At my work, when we had swap space configured on Linux servers, and MySQL would overallocate virtual memory and use some of the swap space, it caused the whole server to become so slow from frequent disk access that we almost could not ssh to the server to shut it down. So we disabled the swap space. It's better to fail completely than to grind to a halt without being able to recover.
That was for direct-attached SSD storage on physical servers in our datacenter. It would be much worse for an AWS EBS volume, because EBS is network-attached storage with higher latency.
You don't necessarily need as much buffer pool as the size of your entire dataset. By default, we choose a ratio of 1:10 for buffer pool to storage. For example, 10GB buffer pool is usually sufficient for 100GB data on disk. At least as a default starting place. Some workloads need more buffer pool, so we might adjust it later.
If your MySQL instance needs more buffer pool, then you really need to get a server with more physical RAM. There is no substitute that works.
This will cost more to get a server with more RAM.
If the application doesn't generate enough business value to pay for the server scale it needs, then it is not a viable application.
QUESTION
Using T-SQL, how can I retrieve the current configuration value that can be set with these commands?
...ANSWER
Answered 2020-Jun-28 at 16:06DBCC USEROPTIONS
will return the settings as a result set:
QUESTION
I have a function app that is assigned a user assigned managed identity, and it uses that to connect to the SQL database. This was working fine for a few days, but then suddenly stopped working, without any changes to db or the function app.
...ANSWER
Answered 2020-May-07 at 08:19To leverage a user-assigned identity, you will need to provide an additional configuration. Please see connection string support for the AppAuthentication
library.
When creating the SQL user, make sure to use the name of the user-assigned identity resource rather than the site name.
QUESTION
I am trying to run a command using the C# namespace System.Diagnostics
.
I use these commands to install SQL Server and SQL Server Management Studio.
For SQL Server, I downloaded the installer from: https://www.microsoft.com/en-us/download/confirmation.aspx?id=55994 and installed the basic version.
After that I want to use this:
...ANSWER
Answered 2020-May-08 at 17:06I think it's because you are not using "/C" in your argument but a "start".
It's a little diffrent from CMD line
try like that instead:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install database-engine
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