Udostępnij za pośrednictwem


Sybase loves AdventureWorks2008?

A SQL Ranger friend of mine in the UK gave me the heads up to this yesterday. (Thanks, Ben!!) Apparently, back in December 2008, Sybase ported some of our samples to SQL Anywhere. Needless to say, I’ve got mixed feelings about Sybase porting AdventureWorks to their platform. Sort of like a cherry-cheese Danish: it’s a pastry and pastries are supposed to taste good, right? But cherries and cheese? Ick. (I’m on a severely calorically restricted diet; sorry for the digression.)

As SQL Server 2008 and SQL Anywhere 11 are two very different database solutions, the ‘AdventureWorks2008’ database will appear slightly different, and offer a few functional differences. These incongruities are the result of different feature sets, which are intrinsic to each database’s design. AdventureWorks2008 Sample Database for SQL Anywhere Download: Mobile Enterprise, Database Management iAnywhere - Sybase Inc

We license AdventureWorks under the Ms-PL, so anybody’s welcome to do whatever they want with our code. It’s out there for learning purposes. Sybase seems to have learned that SQL Anywhere 11 doesn’t do a lot of the really cool things that SQL Server 2008 does! They only ported the OLTP database – I wonder why they ignored DW and LT??

The Sybase port of AdventureWorks2008 drops the following features:

  • They dropped all the spatial columns because SQL Anywhere doesn’t have a geography type.
  • They dropped Try/Catch error handling in all stored procedures, since they can’t do that.
  • They dropped DDL triggers, because SQL Anywhere doesn’t have them.
  • They dropped all stored procedures with recursive queries, because they don’t support them.
  • They dropped all Full Text indexes and queries, since SQL Anywhere doesn’t do that, either, I guess.
  • They dropped or modified all tables with HierarchyID columns, because they don’t have that data type.
  • They dropped all the tables with XML data, or omitted the XML columns, because they don’t support the same XML query lingo and have no XML index support.
  • They dropped all the indexed views, because SQL Anywhere doesn’t do that,either.
  • They dropped all the views that use PIVOT, because (guess what?) they don’t have that keyword.
  • They had to modify a bunch of stored procedures because they don’t support EXECUTE AS CALLER. (Did I mention that they had to drop all the Try/Catch support, too?)
  • They had to emasculate most of the trigger functionality (not counting the DDL triggers they had to drop outright), because they don’t support those features. Such as dropping Try/Catch support to throw exceptions instead of logging and always updating certain columns (even when not appropriate for the business rules):
    • HumanResources.dEmployee
    • Person.iuPerson
    • Production.iWorker
    • Production.uWorkOrder
    • Purchasing.iPurchaseOrderDetail
    • Purchasing.uPurchaseOrderHeader
    • Purchasing.uPurchaseOrderDetail
    • Purchasing.uPurchaseOrderHeader
    • Purchasing.dVendor
    • Sales.iduSalesOrderDetail
    • Sales.uSalesOrderHeader
  • They had to truncate all the binary image columns to 32,767 bytes (which will break all the ones bigger than that) because SQL Anywhere doesn’t have a large binary type apparently. Whoops!

Anyway, I don’t have a SQL Anywhere installation to try it out on, but that list from their own website reads (to me) like a list of reasons to use SQL Server 2008 instead. It looks like they ported our .NET samples for AdventureWorks2008, too, so I have to wonder if they’re equally limited as the AdventureWorks2008 port?

I do hope that SQL Anywhere customers do get some benefit out of using the port of our sample OLTP database (or switch to SQL Server 2008 where they can get the full functionality of AdventureWorks2008). I’d also like to invite Oracle and DB2 to port AdventureWorks2008 to their platforms so that the world can see how much of our feature set they don’t support, either. Heh.

Comments

  • Anonymous
    January 22, 2009
    PingBack from http://windows7news.com.au/2009/01/23/sybase-loves-adventureworks2008/

  • Anonymous
    January 28, 2009
    Dear Mr. Reed, I'm not used to reading your blog, and that won't change, I guess. I just want to link to a comment to this post from one of iAnywhere's program managers. One of those advantages I see with SQL Anywhere seems to be related to the tone the responsible managers choose – clearly noticable when comparing his and your post. Regards Volker http://iablog.sybase.com/hinsperg/2009/01/correcting-the-internets-regarding-sql-anywhere/

  • Anonymous
    January 29, 2009
    Guess that's the difference, Volker, between a personal blog and a corporate blog written by marketing and legal. shrug

  • Anonymous
    January 30, 2009
    As the person who wrote that blog response, Ouch!   Once again, just to state and correct the facts, I wrote it without the "help" of either legal or marketing.  Though my blog is hosted on sybase.com (as yours is hosted by microsoft), I am responsible for the content of it.  I would not be blogging otherwise. However, I am Canadian, so maybe that explains the difference in tone...

  • Anonymous
    February 03, 2009
    The comment has been removed