Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 23236 invoked from network); 25 Mar 2008 16:27:25 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 25 Mar 2008 16:27:25 -0000 Received: (qmail 29861 invoked by uid 500); 25 Mar 2008 16:27:19 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 29575 invoked by uid 500); 25 Mar 2008 16:27:19 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 29564 invoked by uid 99); 25 Mar 2008 16:27:19 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Mar 2008 09:27:19 -0700 X-ASF-Spam-Status: No, hits=-2.8 required=10.0 tests=RCVD_IN_DNSWL_MED,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [192.6.10.60] (HELO tobor.hpl.hp.com) (192.6.10.60) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Mar 2008 16:26:26 +0000 Received: from localhost (localhost [127.0.0.1]) by tobor.hpl.hp.com (Postfix) with ESMTP id E86BAB7B11 for ; Tue, 25 Mar 2008 16:26:20 +0000 (GMT) X-Virus-Scanned: amavisd-new at hplb.hpl.hp.com Received: from tobor.hpl.hp.com ([127.0.0.1]) by localhost (tobor.hpl.hp.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id qXhf8l4Dp1FD for ; Tue, 25 Mar 2008 16:26:04 +0000 (GMT) Received: from ha-node-br2.hpl.hp.com (ha-node-br2.hpl.hp.com [16.25.144.57]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tobor.hpl.hp.com (Postfix) with ESMTPS id 90386B7ACF for ; Tue, 25 Mar 2008 16:25:59 +0000 (GMT) MailScanner-NULL-Check: 1207067127.36932@KmibC2+fMrda7B3virEDtw Received: from [16.25.171.118] (morzine.hpl.hp.com [16.25.171.118]) by ha-node-br2.hpl.hp.com (8.14.1/8.13.4) with ESMTP id m2PGPOqA018598 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Tue, 25 Mar 2008 16:25:25 GMT Message-ID: <47E92778.40907@apache.org> Date: Tue, 25 Mar 2008 16:25:28 +0000 From: Steve Loughran User-Agent: Thunderbird 2.0.0.12 (X11/20080213) MIME-Version: 1.0 To: Ant Users List Subject: Re: ant sql doesn't recognize the database server name with back slash? References: <16181099.post@talk.nabble.com> <47E28693.6050505@mindspring.com> <16184205.post@talk.nabble.com> <47E29C7F.10205@mindspring.com> <16193121.post@talk.nabble.com> <47E3D2A9.1090001@mindspring.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-HPL-MailScanner-Information: Please contact the ISP for more information X-MailScanner-ID: m2PGPOqA018598 X-HPL-MailScanner: Found to be clean X-HPL-MailScanner-From: stevel@apache.org X-Virus-Checked: Checked by ClamAV on apache.org Chaohua Wang wrote: > Hi Folks, > > I am using jdbc driver to connect database. I have 2 database. The url > is like this 10.23.23.1, another one is 10.23.23.2\sql5t9. > I am using jtds drvie to connect: jdbc:jtds:sqlserver://10.23.23.1 it > works fine. > But for 10.23.23.2\sql5t9, is not working. message shows: > java.sql.SQLException: Unknown server host name '10.23.23.2\sql5t9'. > Could you tell what is reason why? Thank you Its up to the driver how it handles URLS; ant just loads the specific driver and calls driver.connect(URL). If the driver is rejecting it, it musnt support backslashes. Given the requirement to be a URL, which means with forward slashes, this isn't that surprising. -steve -- Steve Loughran http://www.1060.org/blogxter/publish/5 Author: Ant in Action http://antbook.org/ --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org