In case you ever need to create a new SQL Anywhere database, there are three ways you can accomplish this. These methods apply to the Developer Editions of both SQL Anywhere 9 and 10 (not the copy that comes with Servoy).
1. Use the dbinit command-line utility.
Open a Terminal and source one of the following files (depending on your version of SA):
/Applications/SQLAnywhere9/System/bin32/asa_config.sh
/Applications/SQLAnywhere10/System/bin32/sa_config.sh
Change to the directory where you want to create the database and issue this command:
dbinit mynewdb.db
This will create a new empty database mynewdb.db. You can then start it using the DBLauncher icon or by issuing one of these two commands:
For version 9: dbeng9 mynewdb.db
For version 10: dbeng10 mynewdb.db
Now your db will be running and you’ll be able to connect using the default user id and password (dba/sql).
2. Use Sybase Central
Start Sybase Central (use the desktop icon) and do not connect to any database. From the Tools menu, select (for SA9) Adaptive Server Anywhere → Create Database; or (for SA10) SQL Anywhere 10 → Create Database.
This opens up a wizard to create the db - just follow the instructions. By default, you will be automatically connected to the db after it is created when the wizard completes.
3. Use SQL statements
Use the following statement inside Interactive SQL (start from desktop icon):
CREATE DATABASE ‘/home/myuser/mynewdb.db’
You must be connected to another database before you can execute this statement.
Once you’ve created the db, you can add it to the Servoy configuration.
That’s it! I hope this is helpful to someone.
Regards,
Jose Ramos
Product Manager
Sybase iAnywhere