Re: Does logging work on Windows XP?
Ramiro Morales <[email protected]>
| Newsgroups | gmane.comp.db.tds.freetds |
|---|---|
| Message-ID | <CAO7PdF9SsL4vzLJ4aJ0GECPH-pcEF8CqWb1Jk1O3AjK0Hx+rdw@mail.gmail.com> |
On Mon, Apr 21, 2014 at 11:19 AM, James K. Lowden <[email protected]> wrote: > On Mon, 21 Apr 2014 11:55:59 +0100 > [email protected] wrote: > >> [global] >> dump file = c:\freetds.log > ... >> but no log file is produced. > > Are you sure have rights to create files in C:\? No message is > produced if the log file cannot be opened. Probably perror(3) should > be called in that case. > > I do not think you need to escape the backslash, because FreeTDS > interprets it literally. You could try c:/freetds.log, but I doubt > that will change anything. You might also try substituting whatever > value is in your environment for TEMP. Right. I'm at the office now and I see I have a freetds.conf file I used when testing things a while back (circa 0.91 release): [global] ;tds version = 7.1 tds version = auto ;dump file append = yes dump file = d:\sql\sql.log debug flags = 0x2FFF ;client charset = US-ASCII ;client charset = UTF-8 ;initial block size = 4096 Logging worked so this is another data point that'd suggest your problem is a FS permisson thing. -- Ramiro Morales @ramiromorales