Re: tsql connects but prompt incs 1, 2, 3

"Jackson, Craig" <[email protected]>
Newsgroups gmane.comp.db.tds.freetds
Message-ID <[email protected]>
isql prompts for the password before opening the connection.

I think the idea is to get the user-interface elements which potentially could wait a long time done before opening the connection.  If you prompt between the connect and sending the login packet, the server could time out the connection if the user doesn't type the password fast enough.

Craig Jackson 

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of James K. Lowden
Sent: Wednesday, December 01, 2010 9:31 PM
To: FreeTDS Development Group
Subject: Re: [freetds] tsql connects but prompt incs 1, 2, 3

Ryp Walters wrote:
> In
> reviewing tsql.c file, the connection attempt starts afterwards.

Thanks for the suggestion.  I added your text to my local working copy of
the tsql man page.  

Your observation, however, is more to the point: the password should be
requested only after the connection is formed, to send the login packet. 
It would be a nice refinement, and dovetails with my effort to separate
clearly the connection from the login.  

--jkl


_______________________________________________
FreeTDS mailing list
[email protected]
http://lists.ibiblio.org/mailman/listinfo/freetds
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.