visitor (0 QPoints)
  • FR
  • EN
  • NL
  • DE
  • ES
315 experts, 1193 registered users, 1659 questions already answered
European Experts Exchange, the very best site for high-quality IT solutions

New Improved Search!

 


05/10/2011 1h30 : Steve Jobs is dead, the father of Apple ][ is gone, we are all orphaned.

Databases :: MS SQL Server :: is Microsoft SQL-Server standard-compliant ?


By: FiatLink Belgium  Date: 02/11/2004 19:20:38  English  Points: 20 Status: Answered
Quality : Excellent
what are the pitfalls when porting standard SQL 92 ro SQL 99 to an SQL-Server database ?
By: VGR Date: 09/11/2004 10:28:08 English  Type : Answer
well... rather not 8-)

SQL92 standard data formats DATE and TIME are missing (they are in MySql)
TIMESTAMP is not conformant to SQL99 standard (ROWVERSION is neither) (it is in MySql)
SQL92 standard CURRENT_DATE is not supported (it is in MySql)
SQL92 standard CURRENT_TIME is not supported (it is in MySql)
SQL92 standard EXTRACT() is not supported (it is in MySql) - see DatePart()
SQL99 standard TRANSLATE() is not supported
SQL92 standard CAST() is not supported - see the proprietary & diverging CONVERT()
SQL92 standard concatenation operator || is not supported, uses + in stead - MySql uses CONCAT() as || is a binary C-like operator
SQL92 standard SUBSTRING() has a third optional parameter. It is mandatory in SQL-Server while MySql is compliant
SQL92 standard TRIM() is not supported, only LTrim() and RTrim() are - MySql is compliant
SQL92 UNION, INTERSECT and EXCEPT are not supported fully
SQL-Server does not support a schema name in CREATE SCHEMA
SQL-Server does not support CREATE DOMAIN
SQL-Server does not support CREATE ROLE
SQL92 standard JOIN type "NATURAL JOIN" is not supported (MySql is compliant)

More useful to know :
SQL-Server is by default case-insensitive
Defines non-standard type IMAGE and the Access datatypes (MEMO, etc) & functions so be warned against them.
SQL-Server INFORMATION_SCHEMA is like SQL92, not SQL99
SQL-Server supports non-standard SELECT ... INTO <table> ; MySql supports non-standard SELECT ... INTO <filename>
DateDiff() and DateAdd() of SQL-Server are different from Access/VB ones but both are supported !!!
Operator LIKE works only on strings (MySql accepts it on any data type)

Do register to be able to answer

EContact
browser fav
page generated in 335.664030 milliseconds

Why Google AdSense ads ?

compteur
 Ranking-Hits PageRank for this page