freetds AT lists.ibiblio.org
Subject: FreeTDS Development Group
List archive
Re: [freetds] Named Instances of MS SQL Server 2000
- From: Steve Langasek <vorlon AT netexpress.net>
- To: freetds AT lists.ibiblio.org
- Subject: Re: [freetds] Named Instances of MS SQL Server 2000
- Date: Wed, 5 Feb 2003 20:35:12 -0600
On Wed, Feb 05, 2003 at 09:12:10PM -0500, Daniel Morgan wrote:
> Here is an attachment thanks to Phillip Jerkins that discovers the port to
> connect to via a named instance. It is in C# though.
> I did test it on .NET, and it does work. Hopefully, we will get it to work
> for Mono too.
Strikingly simple protocol -- too simple for MS's own good, to judge by
the worm...
One thing that caught my attention in the code was this block --
string[] rawtokens = rs.Split(';');
Hashtable data = new Hashtable();
for(int i=0; i<rawtokens.Length/2; i++) {
data[rawtokens[i*2]] = rawtokens[i*2+1];
}
if(!data.ContainsKey("tcp")) throw new +TcpNotSupportedException();
Port = int.Parse((string)data["tcp"]);
I wonder what other options this thing throws back besides the 'tcp' port
option? Hmm...
--
Steve Langasek
postmodern programmer
Attachment:
pgpif8zLW5tQ_.pgp
Description: PGP signature
-
[freetds] Named Instances of MS SQL Server 2000,
Daniel Morgan, 02/05/2003
-
Re: [freetds] Named Instances of MS SQL Server 2000,
Steve Langasek, 02/05/2003
- RE: [freetds] Named Instances of MS SQL Server 2000, Daniel Morgan, 02/06/2003
- <Possible follow-up(s)>
-
RE: [freetds] Named Instances of MS SQL Server 2000,
ZIGLIO Frediano, 02/07/2003
- RE: [freetds] Named Instances of MS SQL Server 2000, Daniel Morgan, 02/07/2003
- Re: [freetds] Named Instances of MS SQL Server 2000, Steve Langasek, 02/07/2003
-
Re: [freetds] Named Instances of MS SQL Server 2000,
Steve Langasek, 02/05/2003
Archive powered by MHonArc 2.6.24.