[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freetds
Subject:    Re: [freetds] dbopen: avoiding config with direct host/port
From:       Frediano Ziglio <freddy77 () gmail ! com>
Date:       2016-04-27 14:33:57
Message-ID: CAHt6W4eO78k-qqReobV2wdhwnLOC0vYUdOUx3mucyk58kqPUmA () mail ! gmail ! com
[Download RAW message or body]

Ehmm...no, LOGINREC is a structure you have to set with setl*
functions or related macros. Server syntax is specified in the
previous mail... I'm not sure there are documentation... I'll check.

Frediano


2016-04-27 8:25 GMT+01:00 Velichko Yuriy <velichko.yuriy@gmail.com>:
> Is there a place in docs with description of parameters format?
> I guess it the same as for .conf file, but maybe it is different. For
> example : what separator need to use between entries?
>
> On 26 April 2016 at 13:09, Frediano Ziglio <freddy77@gmail.com> wrote:
>
>> 2016-04-24 16:53 GMT+01:00 Erik Smith <cruisercoder@gmail.com>:
>> > Is there currently a way to open a connection without referencing the
>> > config files?  This has been asked before but it's unclear if this is
>> > possible:
>> >
>> > http://lists.ibiblio.org/pipermail/freetds/2010q4/026425.html
>> >
>> > There doesn't seem to be a way to do this using this call:
>> >
>> > DBPROCESS *dbopen(LOGINREC * login, const char *server)
>> >
>> > There are fields within LOGINREC (such as host & port) that could be used
>> > to override config, but that doesn't seem to be the way it was
>> implemented.
>> >
>> > Any ideas?
>> >
>> > erik
>>
>>
>> Fill in LOGINREC as much information you need (like protocol version)
>> then use <host>:<port> or <host>\<instance> as server. dbopen will try
>> to read from configuration, fall back to server parsing host and
>> port/instance then override settings with your LOGINREC informations.
>>
>> Frediano
>> _______________________________________________
>> FreeTDS mailing list
>> FreeTDS@lists.ibiblio.org
>> http://lists.ibiblio.org/mailman/listinfo/freetds
>>
> _______________________________________________
> FreeTDS mailing list
> FreeTDS@lists.ibiblio.org
> http://lists.ibiblio.org/mailman/listinfo/freetds
_______________________________________________
FreeTDS mailing list
FreeTDS@lists.ibiblio.org
http://lists.ibiblio.org/mailman/listinfo/freetds
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic