Thread overview
Database connection...
Oct 30, 2006
Nahon
Oct 30, 2006
Kyle Furlong
Oct 30, 2006
Brad Anderson
October 30, 2006
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.
October 30, 2006
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.
October 30, 2006
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