-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: how can i make schema export t NOT to produce drop commands.
PostPosted: Wed Jul 14, 2004 4:33 pm 
Beginner
Beginner

Joined: Fri Jan 23, 2004 10:26 am
Posts: 21
i am using "schemaexport" task from ant to create sql script for MSSQL dialect (MSSQL jdbc). however, it creates the sql script starting with drop commands. Since there is nothing to drop, the tool we are using to run the script is giving an error and not proceeding (osql).
- is there any way not to produce DROP commands
- a little off topic, anybody knows if Osql can ignore this problem and continues running the script. or if there is a better tool for running the script for MSSQL.

i use Hibernate 2.1

my ant task is like this:
Code:
        <taskdef name="schemaexport" classpathref="export.schema.classpath"
            classname="net.sf.hibernate.tool.hbm2ddl.SchemaExportTask"/>
        <schemaexport
            quiet="no"
            text="no"
            drop="no"
            delimiter=";"
            output="schema-export.sql"
            config="/hibernate.cfg.xml">
        </schemaexport>


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.