Skip to Content.
Sympa Menu

freetds - Re: [freetds] Sample code

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • 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




Archive powered by MHonArc 2.6.24.

Top of Page