ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kothari, Shivani" <skoth...@inteqnet.com>
Subject RE: How to check whether database exists and then proceed ?
Date Fri, 26 Sep 2008 11:30:20 GMT
Hi stevel, 
I did the same with using sql command in try catch block. I was
wandering if there is any better approach available.

-----Original Message-----
From: Steve Loughran [mailto:stevel@apache.org] 
Sent: Friday, September 26, 2008 4:24 PM
To: Ant Users List
Subject: Re: How to check whether database exists and then proceed ?

Kothari, Shivani wrote:
> Hi,
> Thanks for pointing it out.
> I want to check using ant that whether a particular database exits on
> MSSQL server? And if it exists I want to proceed further in the
> deployment script.

Use the <sql> command to issue the relevant SELECT statement against the

database, setting up the classpath for the task with the relevant JDBC 
driver and using a login that can query the system


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message