ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Steve Loughran <ste...@apache.org>
Subject Re: How to check whether database exists and then proceed ?
Date Fri, 26 Sep 2008 10:54:14 GMT
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


Mime
View raw message