Skip to Content.
Sympa Menu

freetds - Re: [freetds] Can't SQLConnect to db with dash

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "Fedor" <fedor AT simplonic.com>
  • To: "'FreeTDS Development Group'" <freetds AT lists.ibiblio.org>
  • Subject: Re: [freetds] Can't SQLConnect to db with dash
  • Date: Mon, 27 Feb 2006 16:19:59 -0500

Hi,

I've tried both of those solutions before posting, no good. Here's the dump
(attached), I removed the hostname for privacy. The rest is all the same.

Thanks,
Fedor

> From: Fedor
> Sent: Monday, February 27, 2006 3:41 PM
>
> I ran into a problem when trying to connect to a database with a
> dash (-) in the name. If I incase the database name in single quotes
> it tries to connect to it using double single quotes in the name,
> ie. ''test-db''.
>
> ...
>
> Driver = FreeTDS
> Description = TestDSN
> Trace = No
> Server = 192.168.1.1
> Port = 1433
> Database =test-db
>
> Looks like there's a command line function being used to connect
> and it uses the dash for parameters/options and I've tried incasing
> the name various ways and it's just not working.

Could you try

Database = [test-db]
and
Database = test\-db

If neither of those work, I'd be interested to see a TDSDUMP log of the
attempts. You'll need to set TDSVER=4.2 to see the login packet. If
you post it, beware it will include your password (twice).

--jkl

-----------------------------------------
The information contained in this transmission may be privileged and
confidential and is intended only for the use of the person(s) named
above. If you are not the intended recipient, or an employee or agent
responsible
for delivering this message to the intended recipient, any review,
dissemination,
distribution or duplication of this communication is strictly prohibited. If
you are
not the intended recipient, please contact the sender immediately by reply
e-mail
and destroy all copies of the original message. Please note that we do not
accept
account orders and/or instructions by e-mail, and therefore will not be
responsible
for carrying out such orders and/or instructions. If you, as the intended
recipient
of this message, the purpose of which is to inform and update our clients,
prospects
and consultants of developments relating to our services and products, would
not
like to receive further e-mail correspondence from the sender, please
"reply" to the
sender indicating your wishes. In the U.S.: 1345 Avenue of the Americas,
New York,
NY 10105.
_______________________________________________
FreeTDS mailing list
FreeTDS AT lists.ibiblio.org
http://lists.ibiblio.org/mailman/listinfo/freetds

Attachment: freetds[1].log
Description: Binary data




Archive powered by MHonArc 2.6.24.

Top of Page