Databases :: MS SQL Server :: is Microsoft SQL-Server standard-compliant ? |
|||
| By: FiatLink |
Date: 02/11/2004 19:20:38 |
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 | 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 |
|||
©2010 These pages are served without commercial sponsorship. (No popup ads, etc...). Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE.
Please DO link to this page!








