The sybsyntax installation script installs the database and the necessary tables and indexes.
/* create the database, if it does not exist */ if not exists (select name from sysdatabases where name = "sybsyntax") begin /* create the sybsyntax table if it doesn’t exist */ /* is the space left on the default database devices > size of model? */ if (select sum (high-low +1) from sysdevices where status & 1 = 1) - (select sum(size) from sysusages, sysdevices where vstart >= sysdevices.low and vstart <= sysdevices.high and sysdevices.status &1 = 1) > (select sum(sysusages.size) from sysusages where dbid = 3) begin create database sybsyntax end else begin print "There is not enough room on the default devices to create the sybsyntax database." return end endwhere device_name is the name of the device on which to install sybsyntax.
create database sybsyntax on device_name
isql -Usa -Ppassword -Sservername < %SYBASE%\%SYBASE_ASE%\scripts\inssynsq
where sa is the user ID of the system administrator, password is the system administrator’s password, and servername is the SAP ASE where you plan to install the database.
isql -Usa -Ppassword -S$DSQUERY < %SYBASE%\%SYBASE_ASE%\scripts\inssynsq
isql -Usa -Ppassword -Sservername 1> sp_syntax "select" 2> go
SAP ASE displays a list of commands that contain the word or word fragment “select”.