[fpc-pascal] Re: SQLdb: TMSSQLConnection: using Instance name in Host
ludo.brands at free.fr
Sat Jun 22 09:35:39 CEST 2013
On 06/21/2013 09:12 PM, Marcos Douglas wrote:
> On Fri, Jun 21, 2013 at 4:08 PM, Marcos Douglas <md at delfire.net> wrote:
>> On Fri, Jun 21, 2013 at 3:59 PM, Ludo Brands <ludo.brands at free.fr> wrote:
>>> Ah, just found out that DBSETAPP is wrongly defined for FreeTDS.
>>> It should be 5 instead of 4 according to include/sybdb.h.
>>> Try dbsetlname(FDBLogin, PChar('MyApp'), 5);
>> Aff! I would post before you! :)
>> You're right I used DBSETID:
>> dbsetlname(FDBLogin, PChar('MyApp'), DBSETID);
>> You think is better use 5 instead DBSETID? The source will change?
>> Thank you very much!
> Ah, you want a patch? -- should check the Params if there is the
> 'Application Name' parameter.
Can you confirm it works with dbsetlname(FDBLogin, PChar('MyApp'), 5) ?
If that is the case I'll make a patch for dblib.pp and will add an
application parameter to mssqlconn.
More information about the fpc-pascal