One of the main Microsoft SQL Server 2000 advantage in comparison with DB2 Universal Database v8.1 is that SQL Server is cheaper. Another SQL Server advantage is that Microsoft includes the Online analytical processing (OLAP) and Data Mining as standard features in SQL Server 2000 Enterprise Edition. So, you can save up to four times with SQL Server 2000 Enterprise Edition if you use OLAP and Data Mining.
The price comparisons below were based on the IBM DB2 Version 8.1 and SQL Server 2000 Price Comparison article from Microsoft.
Compare pricing for SQL Server 2000 Standard Edition and IBM DB2 v8.1 Workgroup Edition:
|Number of CPUs||IBM DB2 v8.1 Workgroup Edition||SQL Server 2000 Standard Edition|
Compare pricing for SQL Server 2000 Enterprise Edition (which include OLAP and Data Mining) and IBM DB2 v8.1 Enterprise Edition with OLAP and Data Mining:
|Number of CPUs||IBM DB2 v8.1 Enterprise Edition||IBM DB2 v8.1 Enterprise Edition With OLAP and Data Mining||SQL Server 2000 Enterprise Edition|
Both SQL Server 2000 and IBM DB2 Universal Database v8.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 the brief comparison of the Transact-SQL with DB2 SQL dialect and show some SQL Server 2000 and DB2 Universal Database v8.1 limits.
T-SQL vs DB2 SQL dialect
The dialect of SQL supported by Microsoft SQL Server 2000 is called Transact-SQL (T-SQL). The dialect of SQL supported by IBM DB2 v8.1 is called DB2 SQL dialect. DB2 SQL dialect is a more powerful language than T-SQL. This is the brief comparison of DB2 SQL dialect and T-SQL:
|Feature||DB2 SQL dialect||T-SQL|
INSTEAD OF triggers
INSTEAD OF triggers
DB2 SQL dialect statements,
External Scalar functions,
External table functions,
OLE DB External table functions,
Sourced or Template functions,
SQL Scalar, Table or Row functions
Inline table-valued functions,
Multistatement table-valued functions
SQL Server 2000 and DB2 v8.1 limits
Here you can find some SQL Server 2000 and DB2 version 8.1 limits:
|Feature||SQL Server 2000||IBM DB2 v8.1|
|column name length||128||128|
|index name length||128||128|
|table name length||128||128|
|view name length||128||128|
|cursor name length||128||18|
|constraint name length||128||18|
|SQL variable length||128||64|
|user name length||128||30|
|max char() size||8000||254|
|max varchar() size||8000||32672|
|max columns per table||1024||1012|
|max table row length||8036||32677|
|max columns per index||16||16|
|max indexes per table||250||32767|
|longest SQL statement||16777216||65535|
|columns per SELECT statement||4096||1012|
|columns per INSERT statement||1024||1012|
|nested stored procedure levels||32||16|
It is not true that SQL Server 2000 is better than DB2 Universal Database v8.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 depend rather from the experience of the database developers and database administrator than from the database's provider. But SQL Server 2000 has some advantages in comparison with DB2 Universal Database v8.1 and vice versa.
The SQL Server 2000 advantages:
- SQL Server 2000 is cheaper to buy than DB2 v8.1 Database.
- SQL Server 2000 holds the top TPC-C performance and price/performance results.
- SQL Server 2000 is generally accepted as easier to install, use and manage.
The DB2 Universal Database v8.1 advantages:
- DB2 Universal Database v8.1 supports all known platforms, not only the Windows-based platforms.
- DB2 SQL dialect is a more powerful language than T-SQL.
- More fine-tuning can be done to the configuration via start-up parameters.
- SQL Server 2000 Books Online
- DB2 Technical Support
- IBM DB2 Version 8.1 and SQL Server 2000 Price Comparison
- DB2 Universal Database v8.1 system requirements
- Top Ten TPC-C by Performance Version 5 Results
- Top Ten TPC-C by Price/Performance Version 5 Results