Hi Omega. Are you giving the console application the full path to your SQL script file?
Amir. On Monday, March 2, 2015 at 1:59:40 AM UTC-6, Omega Silva wrote: > > Team, > > I'm trying to create a DB schema using a batch script. > > I've tried executing the batch script as mentioned in the documentation ( > http://www.orientechnologies.com/docs/2.0/orientdb.wiki/Tutorial-Run-the-console.html) > > but this doesn't work. > > My batch script: > > connect remote:localhost/Test root1 root1; > CREATE CLASS A; > CREATE PROPERTY A.name STRING; > ALTER PROPERTY A.name MANDATORY true; > > > Error I get > > orientdb> CREATE CLASS A > Error: com.orientechnologies.common.exception.OException: Database not > selected. Use 'connect <database-name>' to connect to a database. > > > Your support is much appreciated. > > Best Regards > Omega > > -- --- You received this message because you are subscribed to the Google Groups "OrientDB" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
