Quote:
Originally posted by Marcus_A
You can run the create database command in a script, but it is considered a command and not SQL. See the Command Reference manual. Then you can run the SQL to grant access.
Your url link does not seem to work.
|
The URL looks like it got a period appended to it, try
http://tinyurl.com/245r2
Here is the ant <sql> task I'm using the create the database for MySQL - I was hoping it would be as simple with DB2. If not, I just want to know that it's not that simple.
<!-- ================================================== ================= -->
<!-- The "db-create" target creates a database based on properties -->
<!-- from the database.properties file -->
<!-- ================================================== ================= -->
<target name="db-create" depends="define-tasks"
description="create database for ${database.type}">
<echo>Creating database with file: ${database.type}-create.sql</echo>
<sql
driver="${hibernate.connection.driver_class}"
url="${database.name}"
userid="${hibernate.connection.username}"
password="${hibernate.connection.password}">
<classpath refid="hibernate.classpath" />
<fileset dir="metadata/sql">
<include name="${database.type}-create.sql"/>
</fileset>
</sql>
</target>