Re: isql connects, tsql does not

[email protected]
Newsgroups gmane.comp.db.tds.freetds
Message-ID <[email protected]>
On Thu, Jan 19, 2012 at 03:02:24PM -0500, [email protected] 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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.