Source code from blog post : http://lostinmac.com/2013/06/24/sybase-et-le-c-3eme-partie-sybase-client-library/