The comparison of SQL Server 2000 with MySQL v4.1October 8, 2003 IntroductionOften people in newsgroups ask for a comparison of Microsoft SQL Server and MySQL. In this article, I compare SQL Server 2000 with MySQL version 4.1 regarding price, performance, platforms supported, SQL dialects and product limitations. Platform comparisonSQL Server 2000 only works on Windows-based platforms, including Windows 9x,Windows NT, Windows 2000 and Windows CE. In comparison with SQL Server 2000, MySQL version 4.1 supports all known platforms, including Windows-based platforms, AIX-based systems, HP-UX systems, Linux Intel, Sun Solaris and so on. Hardware requirementsTo install SQL Server 2000, you should have the Intel or compatible platforms and the following hardware:
MySQL version 4.1 is not as powerful as SQL Server 2000 and uses less hardware resources. To install MySQL version 4.1, you should have near 32 Mb RAM and near 60 Mb of hard disk space. The general MySQL version 4.1 installation does not require additional CPU resources. Software requirementsSQL Server 2000 comes in six editions: Enterprise, Standard, Personal, Developer, Desktop Engine and SQL Server CE (a compatible version for Windows CE) and requires the following software:
MySQL version 4.1 comes in two editions:
The Standard edition is recommended for most users and contains general MySQL features. The Max edition includes additional features such as the Berkeley DB storage engine, OpenSSL support, user-defined functions (UDFs), and BIG_TABLE support. MySQL version 4.1 requires the following software:
Performance comparisonIt is very difficult to make a performance comparison between SQL Server 2000 and MySQL version 4.1. The performance of your databases depends upon the experience of the database developers and database administrator rather than the database's provider. You can use both of these RDBMS to build stable and efficient systems. It is also possible to define typical transactions used in inventory control systems such as airline reservation systems and banking systems. After defining these typical transactions, it is possible to run them under the different database management systems working with different hardware and software platforms. TPC testsThe Transaction Processing Performance Council (TPC.Org) is an independent organization that specifies the typical transactions (transactions used in inventory control systems, airline reservation systems and banking systems) and some general rules these transactions should satisfy. The TPC produces benchmarks that measure transaction processing and database performance in terms of how many transactions a given system and database can perform per unit of time, e.g., transactions per second or transactions per minute. The TPC organization made the specification for many tests. There are TPC-C, TPC-H, TPC-R, TPC-W and some old tests, such as TPC-A, TPC-B and TPC-D. The most popular test is the TPC-C test (OLTP test). At the moment this article was written, SQL Server 2000 held the second position in the TPC-C by performance results. See Top Ten TPC-C by Performance Version 5 Results. At the moment this article was written, SQL Server 2000 held the topTPC-C by price/performance results. See Top Ten TPC-C by Price/Performance Version 5 Results MySQL does not participate in TPC-C tests, they make their own bench marktests. These tests are not independent, but if you are interested, see this link:The MySQL Benchmark Suite Price comparisonSQL Server 2000 is currently available under two licensing options:
The processor license requires a single license for each CPU on the computer running SQL Server 2000 and includes unlimited client access. You can buy this license when you do not know the number of the clients, (for example, if your users will connect to SQL Server 2000 through the internet). This license usually is cheaper than Server/Per-Seat CAL when there are many users connected to SQL Server databases. The Server/per-seat client access license (CAL) requires a license for the server and the licenses for each client device. You can use this licensing option when the customers do not need access beyond the firewall and the number of clients is low (for example, 10-20 users for SQL Server 2000 Standard Edition or 30-40 users for SQL Server 2000 Enterprise Edition).
The MySQL v4.1 Server commercial license is per database server (single installed MySQL binary). The price comparisons below were based on theMySQL Licensing Prices from MySQL AB.
Features comparisonBoth SQL Server 2000 and MySQL version 4.1 support the ANSI SQL-92 entry level and do not support the ANSI SQL-92 intermediate level. In the Features comparison section of this article, I want to make a brief comparison of the Transact-SQL with MySQL dialect and show some SQL Server 2000 and MySQL version 4.1 limitations. T-SQL vs MySQL dialectThe dialect of SQL supported by Microsoft SQL Server 2000 is called Transact-SQL (T-SQL). The dialect of SQL supported by MySQL version 4.1 is called MySQL dialect. Transact-SQL dialect is a more powerful language than MySQL dialect. This is the brief comparison of T-SQL and MySQL dialect:
SQL Server 2000 and MySQL v4.1 limitationsThe table below lists some SQL Server 2000 and MySQL version 4.1 limitations:
ConclusionIt is not true that SQL Server 2000 is better than MySQL version 4.1 or vice versa. Both products can be used to build stable and efficient systems and the stability and effectiveness of your applications and databases depends upon the experience of the database developers and database administrator rather than the database's provider. However, SQL Server 2000 has some advantages in comparison with MySQL version 4.1 and vice versa. The SQL Server 2000 advantages:
The MySQL version 4.1 advantages:
This is from MySQL version 4.1 documentation: MySQL Server was designed from the start to work with medium size databases (10-100 million rows, or about 100 MB per table) on small computer systems. Literature1. SQL Server 2000 Books Online |