freetds AT lists.ibiblio.org
Subject: FreeTDS Development Group
List archive
- From: "Piet De Jong" <piet AT ahead-tech.net>
- To: <richard AT aspworld.com>, "'FreeTDS Development Group'" <freetds AT lists.ibiblio.org>
- Cc:
- Subject: RE: [freetds] C Project
- Date: Mon, 3 Jan 2005 20:03:09 +0200
OTL works great on top of FreeTDS.
> -----Original Message-----
> From: freetds-bounces AT lists.ibiblio.org
> [mailto:freetds-bounces AT lists.ibiblio.org] On Behalf Of Richard Cook
> Sent: 03 January 2005 06:03 PM
> To: freetds AT lists.ibiblio.org
> Subject: [freetds] C Project
>
>
> Hello,
>
> I need to convert my application that uses the MySQL database
> engine to use MS-SQL. Can anyone point me in the right
> directions for which libraries I need to use?
>
> I have some sample code that does a connect and an Insert.
> I'd like some sample code for Selecting data.
>
> Here are the libraries that I have so far:
> #include <tds.h>
> #include <tdsconvert.h>
> #include <ctype.h>
>
> Here is some of the sample code:
> tds_set_server(login, hostname);
> tds_set_user(login, dbuser);
> tds_set_passwd(login, password);
> tds_set_app(login, "TSQL");
> tds_set_library(login, "TDS-Library");
>
> Does anyone have some more complete sample code? My
> application needs to maintain a persistent connection, and
> perform multiple row Selects and Inserts/Updates.
>
> Any help would be appreciated. Thank you in advance.
>
> --
> Richard Cook
> richard AT aspworld.com
> Tel: 705-497-9320 ext 2010
>
>
>
> _______________________________________________
> FreeTDS mailing list
> FreeTDS AT lists.ibiblio.org
> http://lists.ibiblio.org/mailman/listinfo/free> tds
>
-
[freetds] C Project,
Richard Cook, 01/03/2005
- RE: [freetds] C Project, Piet De Jong, 01/03/2005
- <Possible follow-up(s)>
- RE: [freetds] C Project, Lowden, James K, 01/03/2005
Archive powered by MHonArc 2.6.24.