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:[EMAIL PROTECTED] 
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to