On Sat, Jun 22, 2013 at 4:35 AM, Ludo Brands <ludo.bra...@free.fr> wrote: > On 06/21/2013 09:12 PM, Marcos Douglas wrote: >> On Fri, Jun 21, 2013 at 4:08 PM, Marcos Douglas <m...@delfire.net> wrote: >>> On Fri, Jun 21, 2013 at 3:59 PM, Ludo Brands <ludo.bra...@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.
Yes, I confirm. The ApplicationName was shown in Profiler tool. Marcos Douglas _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal