SQL
MySQL, MSSQL, T-SQL, MariaDB, Percona & more.
45 articles

MySQL - Convert all Tables of one or more Database(s) from MyISAM to InnoDB and vice-versa
Have you ever needed to convert one, some or all the tables of a MySQL Database from MyISAM to InnoDB or the other way around? Here’s a couple queries you can use to achieve such results. As you will notice, they won’t execute the commands
2 min read
SQL Server - Retrieve Product Key from an existing installation
Sometimes you’ll need to retrieve your SQL Server Product Key from an existing installation on your Client or Server machine: the most common scenario takes place when you have an old Server to move or relocate and no one around you seem to remember where
3 min read
When the Replication stops working: analysis and resync of MySQL Replication
We already had the opportunity to talk about Replication between MySQL Database in a previous article, where we described it as a great way to increase the security and reliability of data storage without spending a fortune. In this article we will see what to
11 min read
MySQL: two-columns Primary Key with auto-increment
Everyone working with MySQL (and DBMS in general) knows about the [crayon-6b15176b08d7b801785534-i/] attribute that can be used on a column – often the primary key – to generate a unique identity for new rows. To make a quick example, let’s take the most classic example
4 min read
MySQL Master-Master Replication setup in 5 easy steps
Introduction Master-Master replication, also known as mirror, is by far the simplest technique you can use to increase the performance and the reliability of your MySQL server installation. If you don’t know what it is, just imagine two MySQL server instances continuosly updating each other
8 min read
Enable or disable LazyLoading in Entity Framework
One of the most interesting Entity Framework features is the Lazy Load function, which allows a deferred data load of your related entities, meaning that DB data won’t be loaded until you specifically request it. To better understand how it’s working, let’s take these sample
4 min read
Entity Framework Code-First: how to generate an auto-increment ID field
I’ve already covered the practical advantages of the code-first approach featured by Entity Framework 6 in a previous post: the key concept there was all about creating the whole data model starting from some very standard C# classes: namely, the Entities. The most frequent question
1 min readConfigure MySQL to handle camel case (or case sensitive) table names
The default settings provided with the Win32 and Win64 builds of MySQL enforce a strict lowercase conversion for all the table and database names. This feature can be annoying for those working with auto-generated code tools (such as Entity Framework) because all the entities will
2 min read
ASP.NET: Setup a MVC5 website with MySQL, Entity Framework 6 Code-First and VS2013
The new features available in EF6 allow any developer to build a simple DB-powered website with very few lines of code. There are many tutorials explaining how to do that with SQL Express available on the web, but those who want (or are forced) to
7 min read