[unixODBC-support] Problem connecting to a MSSql server in domain

Nick Gorham nick at lurcher.org
Wed Apr 9 21:29:52 BST 2014


On 09/04/14 20:12, Matt Phipps wrote:
> On Wed, Apr 9, 2014 at 8:57 AM, Lorenzo Milesi <maxxer at ufficyo.com 
> <mailto:maxxer at ufficyo.com>> wrote:
>
>         Just a note, and I'll keep on testing by myself: after
>         changing odbc or
>         odbcinst, should I issue any "odbcinst" command or should they
>         just work?
>
>
>     Ok, I figured out I need to execute
>     odbcinst -i -s -f /etc/odbc.ini
>     after every change to odbc.ini. My mistake. Now I CAN connect to
>     the MSSql server! Thanks!
>
>
> Wait, *that* did it? Huh...that shouldn't be necessary; we've been 
> able to update our own /etc/odbc.ini without running odbcinst again. 
> I'd guess there was some hard-to-see formatting problem in 
> /etc/odbcinst.ini like Mike said, and running odbcinst again fixed it.
>
>     thanks for the help, and forgive my newbie mistake!
>
>
> No problem! I'd call that heroic debugging though, not a mistake, 
> since I never would have thought running odbcinst would help. I like 
> that one-liner, too: using /etc/odbc.ini as its own template is a 
> pretty clever way to make sure the config is tidied up.
>
> -Matt

I would love to know what the difference was. In theory, the code that 
reads it to write to the new file is the same code in the driver manager 
that reads the ini file. Assuming the driver was using libodbcinst to 
read the ini file and not doing it itself.

-- 
Nick
>
>
> _______________________________________________
> unixODBC-support mailing list
> unixODBC-support at mailman.unixodbc.org
> http://mailman.unixodbc.org/mailman/listinfo/unixodbc-support

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.unixodbc.org/pipermail/unixodbc-support/attachments/20140409/0b6dedd5/attachment.html>


More information about the unixODBC-support mailing list