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 end
create database sybsyntax on device_name
isql -Usa -Ppassword -Sservername < $SYBASE/$SYBASE_ASE/scripts/inssynsq
If you have set the DSQUERY environment variable to servername, you can replace the server name with $DSQUERY.
isql -Usa -Ppassword -Sservername 1> sp_syntax "select" 2> go