freetds AT lists.ibiblio.org
Subject: FreeTDS Development Group
List archive
- From: "James K. Lowden" <jklowden AT freetds.org>
- To: FreeTDS Development Group <freetds AT lists.ibiblio.org>
- Subject: Re: [freetds] Sample code
- Date: Mon, 6 Feb 2006 08:19:46 -0500
Jose Geraldo de Oliveira wrote:
>
> PHP is good but our project demands C, because the program needs to use
> Pro*C from Oracle to connect to Oracle Database and Freetds to connect
> to SQL database at the same time...
> -----Message d'origine-----
> Envoyé : vendredi 27 janvier 2006 23:12
>
> Can anyone send me a little sample program to access a SQL using only
> freetds (no ODBC) ?
>
> Can be something very simple...
>
> - connect
> - select anything
> - disconnect
> - quit
I recommend you use db-lib, and suggest you look at some of the programs
in src/dblib/unittests. A more complete example is src/apps/bsqldb.c.
The db-lib API is documented by the vendors, although Microsoft has
stopped updating their library and no longer includes documentation for
it.
Let me know if you need more.
--jkl
-
[freetds] RES: [SPAM] Re: Sample code[Scanned],
Jose Geraldo de Oliveira, 02/06/2006
- Re: [freetds] Sample code, James K. Lowden, 02/06/2006
- <Possible follow-up(s)>
- Re: [freetds] RES: [SPAM] Re: Sample code[Scanned], Зверев Виталий Борисович, 02/06/2006
- Re: [freetds] RES: [SPAM] Re: Sample code[Scanned], Jeff Fisher, 02/06/2006
Archive powered by MHonArc 2.6.24.