freetds AT lists.ibiblio.org
Subject: FreeTDS Development Group
List archive
- From: ZIGLIO Frediano <Frediano.Ziglio AT vodafoneomnitel.it>
- To: "'FreeTDS Development Group'" <freetds AT lists.ibiblio.org>
- Subject: RE: [freetds] ODBC Username?
- Date: Tue, 25 Feb 2003 12:12:36 +0100
>
> <snip> okay, my boo-boo - you have to specify it in the DSN
> string. I've
> hacked the odbc stuff to parse it out of the odbc.ini and it
> appears to
> work quite nicely. Fantastic.
>
> in case anybody wants the change
>
> ------------ random hideous inline diff ------------
> diff -ur freetds-0.61.orig/src/odbc/connectparams.c
> freetds-0.61/src/odbc/connectparams.c
> --- freetds-0.61.orig/src/odbc/connectparams.c 2003-01-04
> 13:06:57.000000000 +0000
> +++ freetds-0.61/src/odbc/connectparams.c 2003-02-25
> 11:04:48.000000000 +0000
> @@ -107,6 +107,10 @@
> if (SQLGetPrivateProfileString(DSN, "Database", "", tmp,
> FILENAME_MAX, "odbc.ini") > 0) {
> tds_dstr_copy(&connect_info->database, tmp);
> }
> + tmp[0] = '\0';
> + if (SQLGetPrivateProfileString(DSN, "UID", "", tmp,
> FILENAME_MAX, "odbc.ini") > 0) {
> + tds_dstr_copy(&connect_info->user_name,tmp);
> + }
> return 1;
> }
>
> @@ -211,6 +215,7 @@
> ++p;
> }
>
> + // See if we have connection info
> return 1;
> }
>
As state in previous mail this patch can't be accepted. I removed this
behavior from 0.60.
Just issue SQLConnect("DSNNAME","USER","PASSWORD") or
SQLDriverConnect("DSN=DSN;UID=USER;PWD=PASSWORD") or, using dsn-less (and
freetds.conf-less)
SQLDriverConnect("SERVER=myrealserver;UID=USER;PWD=PASSWORD;TDS_Version=7.0;
Port=1433")
freddy77
=================================
"STRICTLY PERSONAL AND CONFIDENTIAL
This message may contain confidential and proprietary material for the sole
use of the intended recipient. Any review or distribution by others is
strictly prohibited. If you are not the intended recipient please contact
the sender and delete all copies.
The contents of this message that do not relate to the official business of
our company shall be understood as neither given nor endorsed by it."
=================================
-
[freetds] ODBC Username?,
Andrew Shuttlewood, 02/25/2003
- Re: [freetds] ODBC Username?, Andrew Shuttlewood, 02/25/2003
- <Possible follow-up(s)>
-
RE: [freetds] ODBC Username?,
ZIGLIO Frediano, 02/25/2003
-
RE: [freetds] ODBC Username?,
Andrew Shuttlewood, 02/25/2003
- Re: [freetds] ODBC Username?, James K. Lowden, 02/26/2003
-
RE: [freetds] ODBC Username?,
Andrew Shuttlewood, 02/25/2003
- RE: [freetds] ODBC Username?, ZIGLIO Frediano, 02/25/2003
- RE: [freetds] ODBC Username?, ZIGLIO Frediano, 02/25/2003
- RE: [freetds] ODBC Username?, ZIGLIO Frediano, 02/25/2003
- RE: [freetds] ODBC Username?, ZIGLIO Frediano, 02/25/2003
Archive powered by MHonArc 2.6.24.