How to Connect to SqlAnyhwere

Read first the Connection dialog page to understand the dialog fields( host, port, user, etc. ), SSH tunnel, etc..

Connect to SqlAnyhwere using the user is DBA with password 'sql', default database demodb.

Tip Firewalls & anti-viruses may block database connections. Read How to enable Firewall connections.

Start SqlAnywhere Network Service

To start a network database server open the command prompt, change the directory in SqlAnywhere install folder bin64 and execute :
dbsrv12 -x tcpip -n server1

Install SqlAnyhwere Tutorial

SqlAnywhere can be downloaded and installed on a 60-days trial basis from internet. After installing the SybaseCentral will start.

The default database user is 'DBA' with password 'sql'. The demodb may be installed.

From Sybase Central you can create a new database. You will have to enter the file location. Then you will have to create a service for it. You can do this by selecting the SqlAnywhere:

Then the service tag:

The service can be started also from the Command Prompt using the command:

    dbsrv16.exe
Just execute this and a dialog will ask for the database location and server name. Then you can connect to it from the Sybase Central using the server name. If you get permission errors try to run the Command Prompt as Administrator. There is no need to create a server for the created database, just a Service is enough.

Some useful queries:

// list dbspaces ( are tablespaces with associated files )
select * from sysdbspace;
CREATE USER bubu IDENTIFIED BY bubu;
GRANT CONNECT TO bubu;
GRANT RESOURCE TO bubu;
GRANT CREATE on system to bubu;
COMMENT ON USER bubu IS 'Test user to test some system features without DBA privileges.';