www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Database connection...

reply Nahon <lburger hu.tesco-europe.com> writes:
Hi.

(Sadly) I have to connect to a *MSSQL* database in my program. I browsed the
net quite a lot to find a D library (or sg.) that could do it. (I've found a
connector form MySQL and a few others but not MSSQL.)
Could someone help me about sending an URL for one or a module of own?

Thank you.
Oct 30 2006
next sibling parent Kyle Furlong <kylefurlong gmail.com> writes:
Nahon wrote:
 Hi.
 
 (Sadly) I have to connect to a *MSSQL* database in my program. I browsed the
 net quite a lot to find a D library (or sg.) that could do it. (I've found a
 connector form MySQL and a few others but not MSSQL.)
 Could someone help me about sending an URL for one or a module of own?
 
 Thank you.

Assuming you are comfortable with the windows api for odbc, the api headers are here: http://www.prowiki.org/wiki4d/wiki.cgi?WindowsAPI. Which will link you to the dsource repository.
Oct 30 2006
prev sibling parent Brad Anderson <brad dsource.org> writes:
Nahon wrote:
 Hi.
 
 (Sadly) I have to connect to a *MSSQL* database in my program. I browsed the
 net quite a lot to find a D library (or sg.) that could do it. (I've found a
 connector form MySQL and a few others but not MSSQL.)
 Could someone help me about sending an URL for one or a module of own?
 
 Thank you.

I have wrappers for FreeTDS (http://www.freetds.org) that wrap its ctlib portion of code. They were generated with bdc.gen, and I was able to get a D program talking to MSSQL. However, it's a bit low-level, and I have plans on integrating it with the DDBI lib on dsource - http://www.dsource.org/projects/ddbi. Let me know if you want it in it's rough form. BA
Oct 30 2006