From: "Dwayne Smurdon @ DNA Media Pro" Date: 2003-01-29T05:59:36+09:00 Subject: Connecting to a database.. This is a multi-part message in MIME format. ------=_NextPart_000_00B9_01C2C6E5.CE5E4450 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit I did a lot of googling and looking around the related Ruby websites, but I still cannot find a concreate example of how to connect to a database using a DSN and/or a DSN-less connection. If I do this with win32ole -- it seems to me that sort of means my code is not really crossplatform. So, I think I would like to do it with a general odbc library...but maybe this is more trouble than it's worth? I do have a near-term need to grab 100,000+ contacts from a MS SQL Server and place them into Outlook contacts. So my needs are win-specific. Basically, if someone can tell me how to connect to the server, prepare and execute a sql statement and then iterate over a result-set, I could probably get this done. :) Can anyone help with this? -Dwayne ------=_NextPart_000_00B9_01C2C6E5.CE5E4450 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Connecting to a database..

I did a lot of googling and looking around the related = Ruby websites, but I still cannot find a concreate example of how to = connect to a database using a DSN and/or a DSN-less = connection.

If I do this with win32ole -- it seems to me that sort = of means my code is not really crossplatform.  So, I think I would = like to do it with a general odbc library...but maybe this is more = trouble than it's worth?

I do have a near-term need to grab 100,000+ contacts = from a MS SQL Server and place them into Outlook contacts.  So my = needs are win-specific.

Basically, if someone can tell me how to connect to = the server, prepare and execute a sql statement and then iterate over a = result-set, I could probably get this done.  :)

Can anyone help with this?

-Dwayne

------=_NextPart_000_00B9_01C2C6E5.CE5E4450--