Skip to Content.
Sympa Menu

freetds - Re: [freetds] isql connects, tsql does not

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: jklowden AT schemamania.org
  • To: FreeTDS Development Group <freetds AT lists.ibiblio.org>
  • Subject: Re: [freetds] isql connects, tsql does not
  • Date: Mon, 23 Jan 2012 10:55:19 -0500

On Thu, Jan 19, 2012 at 03:02:24PM -0500, jklowden AT schemamania.org wrote:

> . You would not see the changing-database message if you weren't allowed to
> log in.

My mistake. tsql produces the message

Default database being set to <foo>

*before* sending the login packet. It does that in case the server rejects
the login because the user is not authorized to use the database. (It may
or may not do that, depending on a flag in the login packet.)

I'll change the text of that message to make it clearer.

The server does send a message, #5701 to be precise, and that message won't
arrive until after the login is accepted. But the message you saw came from
tsql.

HTH.

--jkl




Archive powered by MHonArc 2.6.24.

Top of Page