Could someone give me an orientation on the use of any 开发者_JAVA百科version of SQL Server?
I'm working with version 2003 at the moment.
There is a C library freetds that allows you to natively talk to Microsoft SQL Server and Sybase databases.
In order to use it in vala you need to create a "vapi file" (probably writing it manually) containing the class and method declarations in Vala syntax
In addition to the freetds library that o3o mentioned you can use unixODBC to access Microsoft SQL Server.
There are multiple unixODBC drivers for Microsoft SQL Server:
- Microsoft ODBC Driver 11 for SQL Server on Linux (There is also an older version available
- Microsoft SQL Server driver from easysoft
- FreeTDS
There is also a list of unixODBC drviers on their homepage.
There is no readily available vapi
file for unixODBC at the time of this writing. I'm working on a two layered approach for this. It's not finished yet, but might be useful someday ;).
精彩评论