[freetds] isql connects, tsql does not

jklowden at schemamania.org jklowden at schemamania.org
Mon Jan 23 10:55:19 EST 2012


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


More information about the FreeTDS mailing list