0% found this document useful (0 votes)
442 views

Sybase Commands PDF

Uploaded by

Anand Biradar
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
442 views

Sybase Commands PDF

Uploaded by

Anand Biradar
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 22

Sybase® IQ™ 12.6 Quick Reference Guide Page 1a Sybase® IQ™ 12.

6 Quick Reference Guide Page 1b


This Sybase IQ 12.6 Quick Reference Guide was written by Raymond Mardle +ALTER TABLE [ owner.]table-name
([email protected]). Please contact the author for any comments or { ADD column-definition [ column-constraint ]...
suggestions. This document can be downloaded from www.sypron.nl/asiq_qref.html . | ADD table-constraint
| MODIFY column-definition
Created : 1.0 : 6th June 2005. | MODIFY column-name [ IDENTITY ] [ DEFAULT AUTOINCREMENT ] [ NOT ]
Contents NULL
IQ 12.6 Commands 1a – 5b | MODIFY column-name [ CONSTRAINT constraint-name ] CHECK NULL
IQ 12.6 Datatypes 5b – 6a | MODIFY column-name CHECK ( new-condition )
IQ 12.6 Functions 6b – 7b | ALTER column-name column-modification
IQ 12.6 System Procedures 7b – 8a | ALTER constraint-name CHECK ( new-condition )
IQ 12.6 Catalogue Procedures 8a | { DELETE | DROP } column-name
| { DELETE | DROP } CHECK
IQ 12.6 Multiplex System Procedures 8a – 8b
| { DELETE | DROP } CONSTRAINT constraint-name
IQ 12.6 ASE Compatibility System Procedures 8b
IQ 12.6 ASE Compatibility Catalogue Procedures 8b | { DELETE | DROP } UNIQUE ( column-name [, ...] )
IQ 12.6 Extended Procedures 8b | { DELETE | DROP } PRIMARY KEY
IQ 12.6 General Database Options 9a – 10a | { DELETE | DROP } FOREIGN KEY role-name
IQ 12.6 T-SQL Compatibility Options 10a – 10b | RENAME new-table-name
| RENAME column-name TO new-column-name
IQ 12.6 DBISL Options 10b
| RENAME constraint-name TO new-constraint-name
IQ 12.6 Server Properties 11a – 12b
}
IQ 12.6 Database Properties 12b – 15a
IQ 12.6 Connection Properties 15a – 19b ^ column-definition = column-name data-type [ NOT NULL ] [ IDENTITY ]
Starting IQ 12.6 19b [ DEFAULT AUTOINCREMENT ]
IQ 12.6 Start Options (5 sections) 19b – 20b
IQ 12.6 Database Administration Utilities 20b + column-constraint = [ CONSTRAINT constraint-name ]
IQ 12.6 Connection Parameters 21a { UNIQUE
IQ 12.6 Network Communications Parameters 21b | PRIMARY KEY
| REFERENCES table-name [ ( column-name ) ] [ actions ]
In all sections, ^ = new, + = changed | CHECK ( condition )
| IQ UNIQUE ( integer )
IQ 12.6 Commands }
Two styles of commenting; the same as in ASE :- integer : Should always specify IQ UNIQUE even if more than 65,536 distinct values
/* (alternatively, set option MINIMIZE_STORAGE to ON)
a comment between delimiters on one or more lines + table-constraint:
*/ { UNIQUE ( column-name [, ...] )
-- a comment until the end of this line | PRIMARY KEY ( column-name [, ...] )
ALLOCATE DESCRIPTOR descriptor-name | foreign-key-constraint
[ WITH MAX { integer | host-variable } ] | CHECK ( condition )
}
^ALTER DBSPACE dbspace-name
{ READWRITE | READONLY | RELOCATE foreign-key-constraint = FOREIGN KEY [ role-name ] [ ( column-name [, ...] ) ]
| SIZE dbspace-size [ KB | MB | GB | TB | PAGES ] REFERENCES table-name [ ( column-name [, ...] ) ] [ actions ]
| ADD dbspace-size [ KB | MB | GB | TB | PAGES ] } actions = [ ON {UPDATE | DELETE} action ]
ALTER EVENT event-name action = { RESTRICT }
[ DELETE TYPE | TYPE event-type ]
{ WHERE { trigger-condition | NULL } ALTER VIEW
| { ADD | [ MODIFY ] | DELETE } SCHEDULE schedule-spec [ owner.]view-name [( column-name [, ... ] )]
} AS select-without-order-by
[ ENABLE | DISABLE ] [ WITH CHECK OPTION ]
[ [ MODIFY ] HANDLER compound-statement | DELETE HANDLER }
+BACKUP DATABASE
^ALTER INDEX index-name ON [ owner.]table-name [ CRC { ON | OFF } ]
RENAME [ AS | TO ] new-name [ ATTENDED { ON | OFF } ]
[ BLOCK FACTOR integer ]
^ALTER [ INDEX ] FOREIGN KEY role-name ON [ owner.]table-name [ { FULL | INCREMENTAL | INCREMENTAL SINCE FULL } ]
RENAME [ AS | TO ] new-name [ { VIRTUAL DECOUPLED | VIRTUAL ENCAPSULATED ‘shell_command’ } ]
ALTER PROCEDURE [ owner.]procedure-name procedure-definition TO archive_device [ SIZE integer ] [ STACKER integer ]
[ [ TO archive_device [ SIZE integer ] [ STACKER integer ] ] … ]
ALTER SERVER server-name [ WITH COMMENT string ]
[ CLASS ’server-class’ ]
[ USING ’connection-info’ ] [ statement-label : ]
[ CAPABILITY ’cap-name ’ { ON | OFF } ] BEGIN [ [ NOT ] ATOMIC ]
[ local-declaration ; ... ]
^ALTER SERVICE service-name [ TYPE 'service-type-string ' ] statement-list
[ attributes ] [ AS statement ] [ EXCEPTION [ exception-case ... ] ]
END [ statement-label ]
BEGIN PARALLEL IQ
statement-list
END PARALLEL IQ
Sybase® IQ™ 12.6 Quick Reference Guide Page 2a Sybase® IQ™ 12.6 Quick Reference Guide Page 2b
BEGIN TRAN[SACTION] [ transaction-name ]
iq-page-size = { 65536 | 131072 | 262144 | 524288 }
[variable = ] CALL procedure-name ( [ expression] [, ... ] )
block-size = { 4096 | 8192 | 16384 | 32768 }
[variable = ] CALL procedure-name ( [ parameter-name = expression ] [, ... ] )
^ collation-label = string
CASE value-expression
^ key-spec: [ ON ] KEY key [ ALGORITHM ’AES’ ]
WHEN [ constant | NULL ] THEN statement-list
[ [ WHEN [ constant | NULL ] THEN statement-list ] ... ] +CREATE DBSPACE dbspace-name AS filename
[ ELSE statement-list ] [ { IQ STORE | IQ TEMPORARY STORE | IQ LOCAL STORE
END CASE | CATALOG STORE } ]
^Use the format above for the best performance [ [ SIZE ] file-size ]
[ RESERVE sizeMB ]
CASE
WHEN value-expression = constant THEN statement-list CREATE { DOMAIN | DATATYPE } domain-name data-type [ [ NOT ] NULL ]
[ [ WHEN value-expression = constant THEN statement-list ] … ]
[ELSE statement-list ] CREATE EVENT event-name
END CASE [ TYPE event-type
[ WHERE trigger-condition [ AND trigger-condition ], ... ]
CHECKPOINT | SCHEDULE schedule-spec, ... ]
[ ENABLE | DISABLE ]
CLEAR
[ AT { CONSOLIDATED | REMOTE | ALL } ]
CLOSE cursor-name [ HANDLER
BEGIN
^COMMENT ON schedule-statements
{ COLUMN [ owner.]table-name .column-name
END
| EVENT event-name ]
| FOREIGN KEY [ owner.]table-name .role-name
| INDEX [ [ owner.]table.]index-name CREATE EXISTING TABLE [owner.]table_name
| JAVA CLASS java-class-name [ (column-definition, ...) ] AT ’location-string’
| JAVA JAR java-jar-name
CREATE EXTERNLOGIN login-name TO remote-server
| LOGIN integrated_login_id
REMOTE LOGIN remote-user
| PROCEDURE [ owner.]procedure-name
[ IDENTIFIED BY remote-password ]
| SERVICE web-service-name
| TABLE [ owner.]table-name +CREATE FUNCTION [ owner.]function-name ( [ parameter, … ] )
| USER userid RETURNS data-type routine-characteristics
| VIEW [ owner.]view-name { compound-statement | AS tsql-compound-statement | external-name }
}
IS comment ^ routine-characteristics = ON EXCEPTION RESUME | [ NOT ] DETERMINISTIC

COMMIT [ WORK ] ^ tsql-compound-statement = sql-statement


sql-statement ...
COMMIT TRAN[SACTION ] [ transaction-name ]
^ external-name = EXTERNAL NAME library-call
CONFIGURE | EXTERNAL NAME java-call LANGUAGE JAVA
CONNECT ^ library-call = '[operating-system:][email protected] ; ...'
[ TO engine-name ]
[ DATABASE database-name ] ^ operating-system = WindowsNT | UNIX
[ AS connection-name ] ^ java-call = '[package-name .]class-name . method-name method-signature '
[ USER ] userid [ IDENTIFIED BY password ]
^ method-signature = ( [ field-descriptor, ... ] ) return-descriptor
CONNECT USING connect-string
^ field-descriptor | return-descriptor = Z | B | S | I | J | F | D | C | V |
+CREATE DATABASE db-name [descriptor | Lclass-name ] ;
[ [ TRANSACTION ] { LOG ON [ log-file-name ]
[ MIRROR mirror-file-name ] } ] CREATE [ UNIQUE ] [ index-type ] INDEX index-name
[ CASE { RESPECT | IGNORE } ] ON [ owner.]table-name
[ PAGE SIZE page-size ] ( column-name [, ...])
[ COLLATION collation-label ] [ { IN | ON } dbspace-name ]
[ ENCRYPTED { ON | OFF | key-spec} ] [ NOTIFY integer ]
[ BLANK PADDING ON ] [ DELIMITED BY ‘separators-string ‘ ]
[ JAVA { ON | OFF } ] [ LIMIT maxwordsize-integer ]
[ JCONNECT { ON | OFF } ] index-type = { CMP | HG | HNG | LF | WD | DATE | TIME | DTTM }
[ PASSWORD CASE { RESPECT | IGNORE } ]
[ IQ PATH iq-file-name ] CREATE JOIN INDEX join-index-name FOR join-clause
[ IQ SIZE iq-file-size ] ^ join-clause = [ ( ] join-expression join-type join-expression
[ IQ PAGE SIZE iq-page-size ] [ ON search-condition ] [ ) ]
[ BLOCK SIZE block-size ]
[ IQ RESERVE sizeMB ] ^ join-expression = { table-name | join-clause }
[ TEMPORARY RESERVE sizeMB ] ^ join-type = [ NATURAL ] FULL [ OUTER ] JOIN
[ MESSAGE PATH message-file-name ]
[ TEMPORARY PATH temp-file-name ] ^ search-condition = [ ( ] search-expression [ AND search-expression ] [ ) ]
[ TEMPORARY SIZE temp-db-size ] ^ search-expression = [ ( ] [ table-name. ] column-name = [ table-name. ]
column-name [ ) ]
+ page-size = { 4096 | 8192 | 16384 | 32768 }
Sybase® IQ™ 12.6 Quick Reference Guide Page 3a Sybase® IQ™ 12.6 Quick Reference Guide Page 3b

CREATE MESSAGE message-number AS ' message-text ' DELETE [ FROM ] [ owner.]table-name


[ FROM table-list ]
CREATE PROCEDURE [ owner.]procedure-name ( [ parameter , ... ] ) [ WHERE search-condition ]
{ EXTERNAL NAME library-call | [ DYNAMIC RESULT SETS integer-expression ]
EXTERNAL NAME java-call LANGUAGE JAVA | [ RESULT ( result-column , ... ) ] ^DELETE WHERE CURRENT OF cursor-name
[ ON EXCEPTION RESUME ]
DESCRIBE
compound-statement
[ USER TYPES ]
| AT location-string
[ { ALL | BIND VARIABLES FOR | INPUT | OUTPUT | SELECT LIST FOR } ]
}
[ { LONG NAMES [ long-name-spec ] | WITH VARIABLE RESULT } ]
CREATE PROCEDURE [owner.]procedure_name [ FOR ] { statement-name | CURSOR cursor-name } INTO sqlda-name
[ [ ( ] @parameter_name data-type [ = default ] [ OUTPUT ] [, ..] [ ) ] ]
DISCONNECT [ { connection-name | CURRENT | ALL } ]
[ WITH RECOMPILE ]
AS +DROP
statement-list { DBSPACE dbspace-name
| { DATATYPE | DOMAIN } datatype-name
CREATE SCHEMA AUTHORIZATION userid
| EVENT event-name
[ [ { create-table-statement | create-view-statement | grant-statement } ] ... ]
| INDEX [ [owner].table-name .]index-name
server-class = { ASAJDBC | ASEJDBC | ASAODBC | ASEODBC | DB2ODBC | JOIN INDEX [ owner.]join-index-name
| MSSODBC | ORAODBC | ODBC} | MESSAGE message-number
| TABLE [ owner.]table-name
connection-info = { machine-name:port-number [ /dbname ] | data-source-name } | VIEW [ owner.]view-name
CREATE SERVER server-name CLASS ’server-class’ USING ’connection-info’ | PROCEDURE [ owner.]procedure-name
[ READ ONLY ] | FUNCTION [ owner.]function-name
}
^CREATE SERVICE service-name TYPE service-type-string [ attributes ]
[ AS statement ] DROP CONNECTION connection-id

^ attributes = [AUTHORIZATION { ON | OFF } ] [ SECURE { ON | OFF } +DROP DATABASE db-filename [ KEY key-spec ]
] [ USER { user-name | NULL } [ ] URL [ PATH ] { ON | OFF | ELEMENTS } DROP EXTERNLOGIN login-name TO remote-server
] [ USING { SOAP-prefix | NULL } ]
DROP SERVER server-name
^ service-type-string = { 'RAW ' | 'HTML ' | 'XML ' | 'SOAP ' | ' DISH ' }
^DROP SERVICE service-name
+CREATE [ GLOBAL TEMPORARY ] TABLE [ owner.]table-name
( column-definition [ column-constraint ] DROP STATEMENT [ owner.]statement-name
[, column-definition [ column-constraint ]... ]
DROP VARIABLE identifier
[, table-constraint ]... )
[ { IN | ON } dbspace-name ] EXECUTE ( string-expression )
[ ON COMMIT { DELETE | PRESERVE } ROWS ]
| NOT TRANSACTIONAL] EXECUTE statement-name
[ AT location-string ] [ { USING DESCRIPTOR sqlda-name | USING host-variable-list } ]
[ { INTO DESCRIPTOR into-sqlda-name | INTO into-host-variable-list ]
location-string = { remote-server-name .[db-name ].[owner].object-name [ ARRAY :nnn } ]
| remote-server-name ;[db-name ];[owner];object-name }
EXECUTE [ @return_status = ] [owner.]procedure_name
See ALTER TABLE for column-constraint and table-constraint { [ @parameter-name = ] expression | [ @parameter-name = ]
@variable [ output ] } ,...
CREATE VARIABLE identifier data-type
+EXECUTE IMMEDIATE [ execute-option ] string-expression
CREATE VIEW [ owner.]view-name [ ( column-name [, ...] ) ]
AS select-without-order-by { EXIT | QUIT | BYE }
[ WITH CHECK OPTION ]
FETCH
DEALLOCATE DESCRIPTOR descriptor-name :string { NEXT | PRIOR | FIRST | LAST | ABSOLUTE row-count | RELATIVE row-count }
cursor-name
EXEC SQL BEGIN DECLARE SECTION;
{ [ INTO host-variable-list ] | USING DESCRIPTOR sqlda-name
C declarations
| INTO variable-list }
EXEC SQL END DECLARE SECTION;
[ PURGE ] [ BLOCK n ] [ ARRAY fetch-count ]
DECLARE variable_name data-type INTO variable-list
IQ CACHE row-count
+DECLARE cursor-name
[ { SCROLL | NO SCROLL | DYNAMIC SCROLL } ] [ statement-label: ]
CURSOR FOR { select-statement | statement-name FOR for-loop-name AS cursor-name
[ FOR {READ ONLY | UPDATE [ OF column-name-list ] } ] CURSOR FOR statement
| USING variable-name } [ { FOR UPDATE | FOR READ ONLY } ]
DECLARE cursor-name CURSOR DO statement-list
FOR select-statement END FOR [ statement-label ]
[ FOR { READ ONLY | UPDATE } ] FORWARD TO server-name { sql-statement }
DECLARE LOCAL TEMPORARY TABLE table-name FORWARD TO [ server-name ]
( column-definition [ column-constraint ]...
[, column-definition [ column-constraint ]... ] GET DESCRIPTOR descriptor-name
[, table-constraint ]... ) { hostvar = COUNT } | VALUE n assignment [, ...] }
[ ON COMMIT { DELETE | PRESERVE } ROWS NOT TRANSACTIONAL ]
Sybase® IQ™ 12.6 Quick Reference Guide Page 4a Sybase® IQ™ 12.6 Quick Reference Guide Page 4b
label: +LOAD [ INTO ] TABLE [ owner ].table-name
GOTO label ( load -specification [, ...] )
FROM { 'filename -string' | filename -variable } [, ...]
GRANT CONNECT TO userid [, ...] IDENTIFIED BY password [, ...]
[ CHECK CONSTRAINTS { ON | OFF }
GRANT IGNORE CONSTRAINT constrainttype [, ...] ]
{ DBA QUOTES OFF
| GROUP ESCAPES OFF
| MEMBERSHIP IN GROUP userid [, ...] [ FORMAT { 'ascii' | 'binary' } ]
| RESOURCE [ DELIMITED BY 'string' ]
| ALL [ STRIP { ON | OFF } ]
} [ WITH CHECKPOINT { ON | OFF } ]
TO userid [, ...] [ { BLOCK FACTOR number | BLOCK SIZE number } ]
[ BYTE ORDER { NATIVE | HIGH | LOW } ]
GRANT [ LIMIT number-of-rows ]
{ ALL [ PRIVILEGES ] [ NOTIFY number-of-rows ]
| ALTER [ ON FILE ERROR { ROLLBACK | FINISH | CONTINUE} ]
| DELETE [ PREVIEW { ON | OFF } ]
| INSERT [ ROW DELIMITED BY 'delimiter-string' ]
| REFERENCES [ ( column-name [, ...] ) ] [ SKIP number-of-rows ]
| SELECT [ ( column-name [, ...] ) ] [ START ROW ID number ]
| UPDATE [ ( column-name ,... ) ] [ UNLOAD FORMAT ]
} [ IGNORE CONSTRAINT constrainttype [, ...] ]
ON [ owner.]table-name TO userid [, ...] [ WITH GRANT OPTION ] [ MESSAGE LOG ‘string’ ROW LOG ‘string’ [ ONLY LOG logwhat [, ...] ]
GRANT EXECUTE ON [ owner.]procedure-name TO userid [, ...] [ LOG DELIMITED BY ‘string’ ]

GRANT INTEGRATED LOGIN TO user_profile_name [, ...] AS USER userid load-specification = { column-name [ column-spec ] | FILLER ( filler-type ) }

HELP [ topic ] column-spec = { ASCII ( input-width ) | BINARY [ WITH NULL BYTE ]


| PREFIX { 1 | 2 | 4 } | 'delimiter-string' | DATE ( input-date-format )
IF search-condition THEN statement-list | DATETIME ( input-datetime-format ) }
[ ELSE IF search-condition THEN statement-list ]... [ NULL ( { BLANKS | ZEROS | 'literal ', ... } ) ]
[ ELSE statement-list ]
END IF filler-type = { input-width | PREFIX { 1 | 2 | 4 } | 'delimiter-string' }

IF expression constrainttype = { CHECK integer | UNIQUE integer | NULL integer


statement | FOREIGN KEY integer | DATA VALUE integer | ALL integer }
[ ELSE [ IF expression ] statement ]... logwhat = { CHECK | ALL | NULL | UNIQUE | DATA VALUE | FOREIGN KEY }
IF expression [ statement-label : ]
BEGIN [ WHILE search-condition ] LOOP
statement-list statement-list
END END LOOP [ statement-label ]
[ ELSE
BEGIN +MESSAGE expression, ...
statement-list [ TYPE { INFO | ACTION | WARNING | STATUS } ]
END ] [ TO {CONSOLE | CLIENT [ FOR { CONNECTION conn_id | ALL } ] | LOG }
[ DEBUG ONLY ] ]
INCLUDE filename
OPEN cursor-name
INSERT [ INTO ] [ owner.]table-name [ ( column-name [, ...] ) ] [ USING [ DESCRIPTOR { sqlda-name | host-variable [, ...] } ] ]
VALUES ( expression ... ) [ WITH HOLD ]
INSERT [ INTO ] [ owner.]table-name [ ( column-name [, ...] ) ] ^OUTPUT TO filename [ APPEND ] [ VERBOSE ] [ FORMAT output-format ]
insert-load-options [ ESCAPE CHARACTER character ] [ DELIMITED BY string ]
select-statement [ QUOTE string [ ALL ] ] [ COLUMN WIDTHS (integer, …) ]
+INSERT [ INTO ] [ owner.]table-name [ ( column-name [, ...] ) ] [ HEXADECIMAL { ON | OFF | ASIS } ] [ ENCODING encoding ]
insert-load-options output-format = ASCII| DBASEII | DBASEIII | EXCEL | FIXED | FOXPRO | HTML
[ LOCATION 'servername.dbname ' | LOTUS | SQL | XML
[ ENCRYPTED PASSWORD ][ PACKETSIZE packet-size ] ]
{ select-statement } encoding = string or identifier

INSTALL JAVA [ install-mode ] [ JAR jar-name ] FROM source PARAMETERS parameter1, parameter2 , ...

IQ UTILITIES { MAIN | PRIVATE } PREPARE statement-name FROM statement


[ INTO ] table-name [ DESCRIBE describe-type INTO [ [ SQL ] DESCRIPTOR ] descriptor ]
{ START MONITOR ['monitor-options'] | STOP MONITOR } [ WITH EXECUTE ]

LEAVE statement-label PRINT format-string [, arg-list ]


^PUT cursor-name [ USING DESCRIPTOR sqlda-name | FROM hostvarlist ]
[ INTO { DESCRIPTOR into-sqlda-name | into-hostvar-list } ] [ ARRAY :nnn ]
RAISERROR error-number [ format-string ] [, arg-list ]
READ filename [ parameters ]
Sybase® IQ™ 12.6 Quick Reference Guide Page 5a Sybase® IQ™ 12.6 Quick Reference Guide Page 5b
RELEASE SAVEPOINT [ savepoint-name ] select-without-order-by
UNION [ ALL ] select-without-order-by
REMOVE JAVA classes_to_remove [ UNION [ ALL ] select-without-order-by ]...
RESIGNAL [ exception-name ] [ ORDER BY integer [ ASC | DESC ] [, ...] ]

+RESTORE DATABASE ’db_file’ FROM ’archive_device’ [ FROM ’archive_device’ ] … UPDATE table


[ KEY key_spec ] [ RENAME dbspace_name TO ’new_dbspace_path’ ] ... SET [column-name = expression, ...
[ CATALOG ONLY ] [ FROM table-expression [, … ] ]
[ WHERE search-condition ]
RESUME cursor-name [ ORDER BY expression [ ASC | DESC ] ,... ]
RESUME [ ALL ] table-expression = table-spec | table-expression join-type table-spec
RETURN [ ( expression ) ] [ ON condition ] | tableexpression, ...

REVOKE ^UPDATE table-list


{ CONNECT | DBA | INTEGRATED LOGIN | GROUP SET set-item, …
| MEMBERSHIP IN GROUP userid [, ...] | RESOURCE } WHERE CURRENT OF cursor-name
FROM userid [, ...] ^WAITFOR { DELAY time | TIME time }
REVOKE WHENEVER
{ ALL [PRIVILEGES] | ALTER | DELETE | INSERT | REFERENCE { SQLERROR | SQLWARNING | NOTFOUND }
| SELECT [ ( column-name [, ...] ) ] | UPDATE [ ( column-name [, ...] ) ] } {GOTO label | STOP | CONTINUE | C code; }
ON [ owner.]table-name FROM userid [, ...]
WHILE expression
REVOKE EXECUTE ON [ owner.]procedure-name FROM userid [, ...] statement
ROLLBACK [ WORK ] IQ 12.6 Datatypes
ROLLBACK TO SAVEPOINT [ savepoint-name ]
Datatypes Synonyms Range
SAVEPOINT [ savepoint-name ]
+SELECT [ ALL | DISTINCT ] [ FIRST | TOP number-of-rows ] select-list Exact Numeric datatypes (Can’t have WD, DATE, TIME or DTTM indexes)
[ INTO { host-variable-list | variable-list | table-name } ]
[ FROM table-list ] bigint -9223372036854775808 to 9223372036854775807
[ WHERE search-condition ] unsigned bigint 0 to 18446744073709551615
[ GROUP BY { expression [,...] | ROLLUP ( expression [,...] )
| CUBE ( expression [,...] ) } ] integer int -2147483648 to 2147483647
[ HAVING search-condition ] unsigned integer unsigned int 0 to 4294967295
[ ORDER BY { expression | integer } [ ASC | DESC ] [, ...] ]
smallint -32768 to 32767
SET
tinyint 0 to 255
SET identifier = expression
126 126
decimal [ (p, s) ] -10 to 10 -1
SET option-name option-value
126 126
SET CONNECTION [ connection-name ] numeric [ (p, s) ] -10 to 10 -1

SET DESCRIPTOR descriptor-name Approximate numeric datatypes (Can’t have CMP, HNG, WD, DATE, TIME or
{ COUNT = { integer | hostvar } | VALUE n assignment [, ...] } DTTM indexes : HG not recommended)
SET [ EXISTING ] [ TEMPORARY ] OPTION double ±2.2250738585072e
-308
to ±1.79769313486231e
+308
[ userid.| PUBLIC.]option-name = [ option-value ]
float As for real
SET PERMANENT
float (precision) As for real or double, depending upon precision
SET SQLCA sqlca
-38 +38
real ±1.175494351e to ±3.402823466e
SIGNAL exception-name
+START DATABASE database-file Money datatypes (Can’t have WD, DATE, TIME or DTTM indexes)
[ AS database-name ]
[ ON engine-name ] smallmoney numeric (10, 4) -999,999.9999 to 999,999.9999
[ AUTOSTOP { YES | NO } ] money numeric (19, 4) -999,999,999,999,999.9999 to 999,999,999,999,999.9999
[ KEY key ]
START ENGINE AS engine-name [ STARTLINE command-string ] Date / time datatypes (Can’t have WD index. DATE index only on date. TIME index
only on time. DTTM index only on datetime, smalldatetime
START JAVA and timestamp)
STOP DATABASE database-name [ ON engine-name ] [ UNCONDITIONALLY ] date 0001 to 9999
STOP ENGINE engine-name [ UNCONDITIONALLY ] datetime As for timestamp
STOP JAVA smalldatetime As for timestamp
SYNCHRONIZE JOIN INDEX [ join-index-name [, join-index-name [, … ] ] ] time 00:00:00.000000 to 23:59:59.999999
TRIGGER EVENT event-name [ ( parm = value, ... ) ] timestamp 0001-01-01 00:00:00.000000 to 9999-12-31 23:59:59.999999
TRUNCATE TABLE [ owner.]table-name
Sybase® IQ™ 12.6 Quick Reference Guide Page 6a Sybase® IQ™ 12.6 Quick Reference Guide Page 6b

IQ 12.6 Functions
Character datatypes (Can’t have DATE, TIME or DTTM indexes if up to 255 bytes,
only default, WD & CMP indexes possible if more than 255 ABS ( numeric-expr )
bytes) ACOS ( numeric-expr )
ARGN ( integer-expr, expression [ , ...] )
character char 32,767 bytes or fewer ASCII ( string-expr )
character varying varchar 32,767 bytes or fewer ASIN ( numeric-expr )
ATAN ( numeric-expr )
^uniqueidentifierstr Implemented as char (36) ATAN2 ( numeric-expr1, numeric-expr2 )
^long varchar Character Large Object : Separately licensed option : AVG ( { DISTINCT column-name | numeric-expr } )
allows data with a length up to 512 TB for 128 KB page ^BIT_LENGTH ( column-name )
size or 2 PB for 512 KB page size BYTE_LENGTH ( string-expr )
CAST ( expression AS datatype )
Binary datatypes (Can’t have HNG, WD, DATE, TIME or DTTM indexes) CEILING ( numeric-expr )
CHAR ( integer-expr )
binary 255 bytes or fewer CHAR_LENGTH ( string-expr )
varbinary 32,767 bytes or fewer (only default & CMP indexes CHARINDEX ( string-expr1, string-expr2 )
possible if more than 255 bytes) COALESCE ( expression, expression [ , expression ...] )
COL_LENGTH ( table-name, column-name )
^long binary Binary Large Object : Separately licensed option : allows COL_NAME ( table-id, column-id [ , database-id ] )
data with a length up to 512 TB for 128 KB page size or 2 CONNECTION_PROPERTY ( { property-id | property-name } ... [ , connection-id ] )
PB for 512 KB page size CONVERT ( datatype, expression [ , format-style ] )
^image As for long binary COS ( numeric-expr )
COT ( numeric-expr )
Bit datatype (Can only have default index) COUNT ( * )
COUNT ( { DISTINCT column-name | expression } )
bit 0, 1 or NULL DATALENGTH ( expression )
DATE ( expression )
Java to SQL data type conversion DATEADD ( date-part, numeric-expression, date-expr )
DATEDIFF ( date-part, date-expr1, date-expr2 )
Java Type SQL Type DATEFORMAT ( datetime-expr, string-expr )
String CHAR DATENAME ( date-part, date-expr )
String VARCHAR DATEPART ( date-part, date-expr )
String TEXT DATETIME ( expression )
java.math.BigDecimal NUMERIC DAY ( date-expr )
Java.math.BigDecimal MONEY DAYNAME ( date-expr )
Boolean BIT DAYS ( date-expr )
Byte TINYINT DAYS ( date-expr, date-expr )
Short SMALLINT DAYS ( date-expr, integer-expr )
Int INTEGER DB_ID ( [ database-name ] )
Long BIGINT DB_NAME ( [ database-id ] )
Float REAL DB_PROPERTY ( { property-id | property-name } ... [ , {database-id | database-name } ] )
DEGREES ( numeric-expr )
Double DOUBLE
DENSE_RANK ()
java.sql.Date DATE
DIFFERENCE ( string-expr1, string-expr2 )
java.sql.Time TIME DOW ( date-expr )
java.sql.Timestamp TIMESTAMP EVENT_CONDITION ( condition-name )
java.lang.Double DOUBLE EVENT_CONDITION_NAME ( integer )
java.lang.Float REAL EVENT_PARAMETER ( context-name )
java.lang.Integer INTEGER EXP ( numeric-expr )
java.lang.Long INTEGER FLOOR ( numeric-expr )
GETDATE ()
SQL to Java data type conversion
HEXTOINT ( hexadecimal-string )
SQL Type Java Type HOUR ( datetime-expr )
CHAR String HOURS ( datetime-expr )
VARCHAR String HOURS ( datetime-expr, datetime-expr )
NUMERIC java.math.BigDecimal HOURS ( datetime-expr, integer-expr )
DECIMAL java.math.BigDecimal ^HTTP_DECODE ( string )
MONEY java.math.BigDecimal ^HTTP_ENCODE ( string )
BIT boolean ^HTTP_VARIABLE ( var-name [ [ , instance ] , header-field ] )
TINYINT byte IFNULL ( expression1, expression2 [ , expression3 ] )
INDEX_COL ( table-name, index-id, key_# [ , user-id ] )
SMALLINT short
INSERTSTR ( numeric-expr, string-expr1, string-expr2 )
INTEGER int
INTTOHEX ( integer-expr )
BIGINT long ^ISDATE ( string )
REAL float ISNULL ( expression, expression [ , expression ...] )
FLOAT double ^ISNUMERIC ( string )
DOUBLE double LCASE ( string-expr )
DATE java.sql.Date LEFT ( string-expr, numeric-expr )
TIME java.sql.Time LENGTH ( string-expr )
TIMESTAMP java.sql.Timestamp LOCATE ( string-expr1, string-expr2 [ , numeric-expr ] )
Sybase® IQ™ 12.6 Quick Reference Guide Page 7a Sybase® IQ™ 12.6 Quick Reference Guide Page 7b
LOG ( numeric-expr ) TRIM ( string-expr )
LOG10 ( numeric-expr ) “TRUNCATE” ( numeric-expr, integer-expr )
LOWER ( string-expr ) TRUNCNUM ( numeric-expression, integer-expression )
LTRIM ( string-expr ) UCASE ( string-expr )
MAX ( { DISTINCT column-name | expression } ) UPPER ( string-expr )
MIN ( { DISTINCT column-name | expression } ) USER_ID ( [ user-name ] )
MINUTE ( datetime-expr ) USER_NAME ( [ user-id ] )
MINUTES ( datetime-expr ) +VARIANCE ( [ ALL ] expression )
MINUTES ( datetime-expr, datetime-expr ) WEEKS ( date-expr )
MINUTES ( datetime-expr, integer-expr ) WEEKS ( date-expr, date-expr )
MOD ( dividend, divisor ) WEEKS ( date-expr, integer-expr )
MONTH ( date-expr ) YEAR ( date-expr )
MONTHNAME ( date-expr ) YEARS ( date-expr )
MONTHS ( date-expr ) YEARS ( date-expr, date-expr )
MONTHS ( date-expr, date-expr ) YEARS ( date-expr, integer-expr )
MONTHS ( date-expr, integer-expr ) YMD ( year-num, month-num, day-num )
NEXT_CONNECTION ( { NULL | connection-id } )
NEXT_DATABASE ( { NULL | database-id } ) For all following procedures, parameters can be enclosed in ( and ) when ‘call’ used
^NEXT_HTTP_HEADER header-name
^NEXT_HTTP_VARIABLE var-name IQ 12.6 System Procedures
NOW ( * )
sp_iqaddlogin loginname, password [, number_of_connections ]
NTILE ( integer )
[ , password_expiration ]
NULLIF ( expression1, expression2 )
sp_iqcheckdb ’ mode target [...] [ resources resource-percent ]’
NUMBER ( * )
sp_iqcheckoptions
OBJECT_ID ( object-name )
sp_iqcolumn [ table_name ] [, table_owner ]
OBJECT_NAME ( object-id [ , database-id ] )
sp_iqcolumn [ table_name=’tablename ’ ] [, table_owner=’tableowner’ ]
^OCTET_LENGTH ( column-name )
sp_iqcommandstats [ verbosity_level | search_string ]
PATINDEX ( '%pattern%', string_expr )
sp_iqconnection [ connhandle ]
PERCENT_RANK ()
sp_iqconstraint [ table-name ] [ , column-name ] [ , table-owner ]
PERCENTILE_CONT ( numeric-expr )
sp_iqcontext [ connhandle ]
PERCENTILE_DISC ( numeric-expr )
+sp_iqdbsize [ main | local ]
PI ( * )
^sp_iqdbspace [ dbspace-name ]
POWER ( numeric-expr1, numeric-expr2 )
^sp_iqdbspaceinfo [ ‘dbspace-name-pattern ’ ] [ , ’local’]
PROPERTY ( { property-number | property-name } )
sp_iqdbstatistics
PROPERTY_DESCRIPTION ( { property-number | property-name } )
sp_iqdroplogin userid
PROPERTY_NAME ( property-number )
sp_iqestdbspaces db_size_in_bytes, iq_page_size,
PROPERTY_NUMBER ( property-name )
min_#_of_bytes, max_#_of_bytes ]
QUARTER ( date-expr )
sp_iqestjoin table1_name , table1_row_#, table2_name , table2_row_# ,
RADIANS ( numeric-expr )
relation , iq_page_size
RAND ( [ integer-expr ] )
sp_iqestspace table_name , #_of_rows, iq_page_size
RANK ()
sp_iqindex [ table_name ] [ , column_name ] [ , table_owner ]
REMAINDER ( numeric-expr, numeric-expr )
sp_iqindex [ table_name=’tablename ’ ]
REPEAT ( string-expr, numeric-expr )
[ , column_name=’columnname ’ ] [ , table_owner=’tableowner’ ]
REPLACE ( original-string, search-string, replace-string )
sp_iqindex_alt [ table_name ] [ , column_name ] [ , table_owner ]
REPLICATE ( string-expr, integer-expr )
sp_iqindex_alt [ table_name=’tablename ’ ]
RIGHT ( string-expr, numeric-expr )
[ , column_name=’columnname ’ ] [ , table_owner=’tableowner’ ]
ROUND ( numeric-expr, integer-expr )
^dbo.sp_iqindexfragmentation ‘target‘
ROWID ( table-name )
^sp_iqindexinfo ‘{ database | local | [ table table-name | index index-name ] [...] }
RTRIM ( string-expr )
[ resources resource-percent ]’
SECOND ( datetime-expr )
sp_iqindexsize [ [ owner.]table.]index_name
SECONDS ( datetime-expr )
sp_iqjoinindexsize join_index_name
SECONDS ( datetime-expr, datetime-expr )
sp_iqlistexpiredpasswords
SECONDS ( datetime-expr, integer-expr )
sp_iqlistlockedusers
SIGN ( numeric-expr )
sp_iqlistpasswordexpirations
SIMILAR ( string-expr1, string-expr2 )
sp_iqlocklogin loginname , ‘{ lock | unlock }’
SIN ( numeric-expr )
sp_iqlocks [ connection, ] [ [ owner.]table_name , ] [ max_locks, ] [ sort_order ]
SORTKEY ( string_expr [ collation-name ] )
sp_iqmodifyadmin ‘{ [ enable | disable | user_connections |
SOUNDEX ( string-expr )
db_connections | password_expiration | password_warning ] }’ [ , value ]
SPACE ( integer-expr )
sp_iqmodifylogin ‘{ loginname | all overrides }’, ‘option ’, value
SQRT ( numeric-expr )
sp_iqpassword caller_password , new_password [ , loginname ]
+STDDEV ( [ ALL ] expression )
sp_iq_process_login
STR ( numeric_expr [ , length [ , decimal ] ] )
^sp_iqrebuildindex table_name , index_clause
STRING ( string1 [ , string2, ..., string99 ] )
^sp_iqrelocate ‘target [ maxsize nMB ] [ resources resource-percent ]’
STUFF ( string-expr1, start, length, string-expr2 )
^sp_iq_reset_identity table_name , table_owner , value
SUBSTRING ( string-expr, integer-expr [ , integer-expr ] )
^dbo.sp_iqrowdensity ‘target ‘
SUM ( { DISTINCT column-name | expression } )
+sp_iqspaceinfo [ ‘main | local | [ table table-name | index index-name ] [...] ‘]
SUSER_ID ( [ user-name ] )
sp_iqspaceused out mainKB unsigned bigint, out mainKBUsed unsigned bigint,
SUSER_NAME ( [ user-id ] )
out tempKB unsigned bigint, out tempKBUsed unsigned bigint
TAN ( numeric-expr )
sp_iqstatus
TODAY ( * )
sp_iqtable [ table_name ] [ , table_owner ] [ , table_type ]
Sybase® IQ™ 12.6 Quick Reference Guide Page 8a Sybase® IQ™ 12.6 Quick Reference Guide Page 8b
sp_iqtable [ table_name=’tablename ’ ] dbo.sp_iqmpxmakeclean ()
[ , ] [ table_owner=’tableowner’ ] [ , ] [ table_type=’tabletype’ ] ^sp_iqmpxpassthrough ( IN sqlcmd VARCHAR(1024) )
sp_iqtablesize [ table_owner.]table_name sp_iqmpxpostsyncqueryserver ()
sp_iqtransaction sp_iqmpxprotectexec ( IN _cmd VARCHAR(1024) )
sp_iqview [ view_name ],[view_owner ],[view_type ] sp_iqmpxreplacewriteserver ( IN l_new_server_name VARCHAR(30) )
sp_iqview [view_name=’viewname ’ ] [ , ] sp_iqmpxresetquerysubscription ( IN l_server_name VARCHAR(30) )
[ view_owner=’viewowner’ ] [ , ] [ view_type=’viewtype ’ ] sp_iqmpxretryexec ( IN _cmd VARCHAR(1024), IN _msg VARCHAR(1024) )
sp_iqmpxsetpublisher ( IN l_server_name VARCHAR(30) default NULL )
IQ 12.6 Catalogue Procedures sp_iqmpxstopdbremote ()
^sa_audit_string string sp_iqmpxsubscribeuser ( IN _user VARCHAR(30),
sa_checkpoint_execute ’shell_commands’ IN _path LONG VARCHAR default NULL,
^sa_conn_activity IN _perm VARCHAR(15) default ‘REMOTE’ )
sa_conn_info [ connection-id ] sp_iqmpxunsubscribeuser ( IN _user VARCHAR(30) )
sa_conn_properties [ connection-id ] dbo.sp_iqmpxvalidate ( IN _show_msgs CHAR(1) DEFAULT ‘Y’ )
sa_conn_properties_by_conn [ property-name ] sp_iqmpxversionfetch ( out CatalogID unsigned bigint, out VersionID unsigned bigint,
sa_conn_properties_by_name [ connection-id ] out OAVID unsigned bigint, out ServerType char(1),
sa_db_info [ database-id ] out CatalogSync char(1), out WCatalogID unsigned bigint,
sa_db_properties [ database-id ] out WVersionID unsigned bigint )
^sa_disable_auditing_type [ 'string’ ] sp_iqmpxversioninfo ()
^sa_enable_auditing_type [ 'string’ ] IQ 12.6 ASE Compatability System Procedures
sa_eng_properties
sa_flush_cache sp_addgroup group-name
^sa_make_object objtype, objname [ , owner [ , tabname ] sp_addlogin userid, password [, defdb [, deflanguage [, fullname ] ] ]
sa_server_option option_name , option_value sp_addmessage messagenum, message_text [, language ]
^sa_set_http_header field-name , value sp_addtype typename, datatype, [, "identity" | nulltype ]
^sa_set_http_option option-name , value sp_adduser login_name [, name_in_db [, group-name ] ]
^sa_validate [ tbl_name ] [ , owner_name [ , check_type ] sp_changegroup new-group-name, userid
sp_login_environment sp_dboption [ dbname, optname, { true | false } ]
sp_remote_columns servername [ , tablename ] [ , owner ] [ , database ] sp_dropgroup group-name
sp_remote_exported_keys server_name , sp_name [ , sp_owner ] sp_droplogin userid
[ , sp_qualifier ] sp_dropmessage messagenumber [, language ]
sp_remote_imported_keys server_name , sp_name [ , sp_owner ] sp_droptype typename
[ , sp_qualifier ] sp_dropuser userid
^sp_remote_primary_keys server_name [ , table_name ] sp_getmessage message-num, @msg-var output [, language ]
[ , table_owner ] [ , table_qualifier] sp_helptext ’owner.object-name ’ – Must supply owner
+sp_remote_tables servername [, tablename ] [ , owner ] [ , table_qualifier ] sp_password caller_passwd, new_passwd [, userid ]
[ , with_table_type ]
sp_servercaps servername IQ 12.6 ASE Compatability Catalogue Procedures
sp_tsql_environment sp_columns [ table-name [, table-owner ] [, table-qualifier ] [, column-name ] ]
IQ 12.6 Multiplex System Procedures (Read the Ref Guide before using) sp_fkeys [ pktable_name [, pktable-owner ] [, pktable-qualifier ] [, fktable-name ]
[, fktable_owner ] [, fktable-qualifier ] ]
dbo.sp_iq_mpx_init () <Do not invoke this procedure> sp_pkeys table-name [, table-owner ] [, table-qualifier ]
sp_iqendmpx sp_special_columns table-name [, table-owner ] [, table-qualifier ] [, col-type ]
dbo.sp_iqendmpx () sp_sproc_columns proc-name [, proc-owner ] [, proc-qualifier ] [, column-name ]
“DBA”.sp_iqevbegintxn () sp_stored_procedures [ sp-name [, sp-owner ] [, sp-qualifier ] ]
sp_iqmakempx ( IN l_host_name VARCHAR (40), sp_tables [ table-name [, table-owner ] [, table-qualifier ] [, table-type ] ]
IN l_server_name VARCHAR (30),
IN l_db_path VARCHAR (1024), IQ 12.6 Extended Procedures
IN l_port_number VARCHAR (40) ) xp_cmdshell ( command [ , ‘no_output’ ] )
“DBA”.sp_iqmpxaddremoteusers ( IN l_server_name VARCHAR (30) default NULL, xp_msver ( option )
IN qName VARCHAR (30) default NULL ) xp_read_file ( file-name )
“DBA”.sp_iqmpxaliasdbspace ( IN _dbspace_name VARCHAR (128), xp_scanf ( input-string , format-string [ , param1 … [ , param50 ] ] )
IN _server VARCHAR (30), +xp_sendmail recipient, [ subject ] [ , cc_recipient ] [ , bcc_recipient ] [ , “message” ]
IN _path VARCHAR (255) default NULL, [ , include_file ]
IN _fromserver VARCHAR (30) default ‘ ‘, xp_sprintf ( output-string, format-string [ , param1 … [ , param50 ] ] )
IN _offset UNSIGNED BIGINT default NULL ) xp_startmail [ mail_user, mail_password ]
dbo.sp_iqmpxcountdbremote () ^xp_startsmtp smtp_sender, smtp_server [ , smtp_port ] [ , timeout ]
sp_iqmpxcreatepublication ( IN l_newserver VARCHAR (255) default NULL ) xp_stopmail ()
sp_iqmpxcreatequeryserver ( IN l_host_name VARCHAR (40), ^xp_stopsmtp ()
IN l_server_name VARCHAR (30), xp_write_file ( file-name , file-contents )
IN l_db_path VARCHAR (1024),
IN l_port_number VARCHAR (40) )
sp_iqmpxdropdbspace ( IN l_dbspace_name varchar(128) )
sp_iqmpxdroppublication ()
sp_iqmpxdropqueryserver ( IN l_server_name VARCHAR(30) )
sp_iqmpxdropserverdbspaces ( IN ln_server_name varchar(30) )
sp_iqmpxdumptlvlog ()
sp_iqmpxexcludeserver ( IN _server VARCHAR(30), IN _reqStat VARCHAR(10) )
^sp_iqmpxgetconnversion ()
Sybase® IQ™ 12.6 Quick Reference Guide Page 9a Sybase® IQ™ 12.6 Quick Reference Guide Page 9b

IQ 12.6 General Database Options ( * = change with care ) General Database Option Values Default
To view options from every section together, enter SET in DBISQL with nothing else JAVA_HEAP_SIZE integer 1,000,000
JAVA_NAMESPACE_SIZE integer 4,000,000
General Database Option Values Default JOIN_EXPANSION_FACTOR 0 to 100 30
AGGREGATION_PREFERENCE -3 to 3 0 JOIN_OPTIMIZATION ON, OFF ON
APPEND_LOAD ON, OFF OFF JOIN_PREFERENCE -7 to 7 0
^AUDITING ON, OFF OFF JOIN_SIMPLIFICATION_THRESHOLD 1 to 64 15
BACKUP_EXEC_CMD n/a n/a LARGE_DOUBLES_ACCUMULATOR ON, OFF OFF
BIT_VECTOR_PINNABLE_CACHE_ 0 to 100 40 LF_BITMAP_CACHE_KB 1 to 8 4
PERCENT* +LOAD_MEMORY_MB 0 to 2,000 0
BLOCKING OFF OFF ^LOCAL_RESERVED_DBSPACE_MB integer > 0 in MB 200
^BT_PREFETCH_MAX_MISS 0 to 1,000 2 LOG_CONNECT ON, OFF ON
BT_PREFETCH_SIZE 0 to 100 10 LOG_CURSOR_OPERATIONS ON, OFF OFF
CACHE_PARTITIONS power of 2, 0 to 64 0 LOGIN_MODE STANDARD, STANDARD
CHECKPOINT_TIME number of minutes 60 MIXED,
CIS_ROWSET_SIZE integer 50 INTEGRATED
COMMAND_STATS ON, OFF OFF LOGIN_PROCEDURE string sp_iq_process_
CONVERT_HG_TO_1242 ON, OFF OFF login
CONVERT_VARCHAR_TO_1242 ON, OFF OFF MAIN_CACHE_MEMORY_MB 1 to 4,194,303 16
COOPERATIVE_COMMIT_TIMEOUT integer 250 ^MAIN_KB_PER_STRIPE integer > 0 in KB 1
COOPERATIVE_COMMITS ON, OFF ON MAIN_RESERVED_DBSPACE_MB integer > 0 in MB 200
CURSOR_WINDOW_ROWS 20 to 100,000 200 MAX_CARTESIAN_RESULT integer 10,000,000
DATE_FIRST_DAY_OF_WEEK 0 to 6 0 ^MAX_CLIENT_NUMERIC_PRECISION 0 to 126 0
DATE_FORMAT string ’YYYY-MM-DD’ ^MAX_CLIENT_NUMERIC_SCALE 0 to 126 0
DATE_ORDER ’YMD’, ’DMY’, ’YMD’ MAX_CUBE_RESULT 0 to 250,000,000 10,000,000
’MDY’ MAX_CURSOR_COUNT integer 50
^DBCC_LOG_PROGRESS ON, OFF OFF MAX_HASH_ROWS integer to 2,500,000
DBCC_PINNABLE_CACHE_ 0 to 100 50 250,000,000
PERCENT MAX_IQ_THREADS_PER_ 2 to 1,000 72
^DDL_OPTIONS2 0 to 3 0 CONNECTION
^DEBUG_MESSAGES ON, OFF OFF ^MAX_IQ_THREADS_PER_TEAM 1 to 1,000 48
^DEDICATED_TASK ON, OFF OFF MAX_JOIN_ENUMERATION 1 to 64 15
^DEFAULT_LIKE_MATCH_SELECTIVITY 0 to 100 15 MAX_QUERY_PARALLELISM integer <= # CPUs 24
^DEFAULT_LIKE_RANGE_SELECTIVITY 0 to 100 15 ^MAX_QUERY_TIME 0 to 2^32 – 1 0 (disabled)
DELAYED_COMMIT_TIMEOUT integer 500 +MAX_STATEMENT_COUNT integer 100
DELAYED_COMMITS OFF OFF MAX_WARNINGS integer 2^64 - 1
DISABLE_RI_CHECK ON, OFF OFF ^MIN_NLPDJ_TABLE_SIZE 1 to 4,294,967,295 10,000
DISK_STRIPING ON, OFF ON MIN_PASSWORD_LENGTH integer >= 0 0 characters
^EARLY_PREDICATE_EXECUTION ON, OFF ON ^MIN_SMPDJ_OR_HPDJ_FILTERED_ 1 to 4,294,967,295 25,000
EXTENDED_JOIN_SYNTAX ON, OFF ON SIZE
^FLATTEN_SUBQUERIES ON, OFF OFF ^MIN_SMPDJ_OR_HPDJ_INDIRECT_ 1 to 4,294,967,295 500,000
FORCE_DROP ON, OFF OFF SIZE
FORCE_NO_SCROLL_CURSORS ON, OFF OFF ^MIN_SMPDJ_OR_HPDJ_TABLE_SIZE 1 to 4,294,967,295 100,000
^FORCE_UPDATABLE_CURSORS ON, OFF OFF MINIMIZE_STORAGE ON, OFF OFF
^FPL_EXPRESSION_MEMORY_KB 0 to 20000 1024 ^MONITOR_OUTPUT_DIRECTORY string database
FP_PREDICATE_WORKUNIT_PAGES integer 400 directory
FP_PREFETCH_SIZE 0 to 100 10 NOEXEC ON, OFF OFF
NON_ANSI_NULL_VARCHAR ON, OFF OFF
GARRAY_FILL_FACTOR_PERCENT 0 to 1000 25
NOTIFY_MODULUS integer 100,000
GARRAY_INSERT_PREFETCH_SIZE 0 to 100 3
^ODBC_DISTINGUISH_CHAR_AND_ ON, OFF OFF
GARRAY_RO_PREFETCH_SIZE 0 to 100 10
VARCHAR
HASH_PINNABLE_CACHE_ 0 to 100 20
PERCENT*
^ON_CHARSET_CONVERSION_ string IGNORE
HASH_THRASHING_PERCENT 0 to 100 10
FAILURE
HG_DELETE_METHOD 0, 1, or 2 0
OS_FILE_CACHE_BUFFERING ON, OFF OFF
HG_SEARCH_RANGE integer 10
OUT_OF_DISK_MESSAGE_REPEAT integer 120
^IDENTITY_ENFORCE_UNIQUENESS ON, OFF OFF
OUT_OF_DISK_WAIT_TIME integer 30
^IDENTITY_INSERT = 'tablename' =''
PARALLEL_GBH_ENABLED ON, OFF ON
^INDEX_ADVISOR ON, OFF OFF
^PARALLEL_GBH_MIN_ROWS_PER_ 0 to 4,294,967,295 3,000,000
INDEX_PREFERENCE -10 to 10 0
UNIT
^INFER_SUBQUERY_PREDICATES ON, OFF OFF
PARALLEL_GBH_UNITS 0 to 100 0
^IN_SUBQUERY_PREFERENCE -3 to 3 0
PRECISION 126 126
^IQGOVERN_MAX_PRIORITY 1 to 3 2
PREFETCH ON, OFF ON
^IQGOVERN_PRIORITY 1 to 3 2 PREFETCH_BUFFER_LIMIT integer 0
^IQGOVERN_PRIORITY_TIME 1 to 1,000,000 secs 0 (disabled)
PREFETCH_BUFFER_PERCENT 0 to 100 40
+IQMSG_LENGTH_MB 0 to 2047 0 (no limit) PREFETCH_FP_PERCENT 0 to 100 50
ISOLATION_LEVEL 0, 1, 2, 3 0
PREFETCH_GARRAY_PERCENT 0 to 100 60
Sybase® IQ™ 12.6 Quick Reference Guide Page 10a Sybase® IQ™ 12.6 Quick Reference Guide Page 10b

General Database Option Values Default ANSI_UPDATE_CONSTRAINTS OFF, CURSORS, CURSORS


PREFETCH_SORT_PERCENT 0 to 100 50 STRICT
^PRESERVE_SOURCE_FORMAT ON, OFF ON ^ASE_BINARY_DISPLAY ON, OFF ON
QUERY_DETAIL ON, OFF OFF AUTOMATIC_TIMESTAMP OFF OFF
QUERY_NAME string empty string CHAINED ON, OFF ON
QUERY_PLAN ON, OFF ON CLOSE_ON_ENDTRANS ON ON
QUERY_PLAN_AFTER_RUN ON, OFF OFF +CONTINUE_AFTER_RAISEERROR ON, OFF ON
QUERY_PLAN_AS_HTML ON, OFF OFF CONVERSION_ERROR ON, OFF ON
QUERY_ROWS_RETURNED_LIMIT integer 0 DIVIDE_BY_ZERO_ERROR ON, OFF ON
QUERY_TEMP_SPACE_LIMIT integer 2,000 ESCAPE_CHARACTER* ON ON
QUERY_TIMING ON, OFF OFF FIRE_TRIGGERS*
RECOVERY_TIME number of minutes 2 FLOAT_AS_DOUBLE ON, OFF OFF
^RETURN_DATE_TIME_AS_STRING ON, OFF OFF NEAREST_CENTURY 0 to 100 50
ROW_COUNT integer 0 NON_KEYWORDS Comma separated No keywords
SCALE 0 to 126 38 keywords list turned off
^SIGNIFICANTDIGITSFORDOUBLE 0 to 15 0 ON_TSQL_ERROR STOP, CONDITIONAL
EQUALITY CONTINUE,
SORT_PHASE1_HELPERS integer 3 CONDITIONAL
SORT_PINNABLE_CACHE_ 0 to 100 20 PERCENT_AS_COMMENT ON, OFF ON
PERCENT* QUERY_PLAN_ON_OPEN*
^SUBQUERY_PLACEMENT_ -1 to 1 0 QUOTED_IDENTIFIER ON, OFF ON
PREFERENCE RI_TRIGGER_TIME*
^SUPPRESS_TDS_DEBUGGING ON, OFF OFF SQL_FLAGGER_ERROR_LEVEL E, I, F, W W
SWEEPER_THREADS_PERCENT 1 to 40 10 SQL_FLAGGER_WARNING_LEVEL E, I, F, W W
^TDS_EMPTY_STRING_IS_NULL ON, OFF OFF STRING_RTRUNCATION ON, OFF OFF
+TEMP_CACHE_MEMORY_MB 1 to 4,194,303 12 TEXTSIZE*
^TEMP_DISK_PER_STRIPE integer > 0 in KB 1 TSQL_HEX_CONSTANT ON, OFF OFF
TEMP_EXTRACT_APPEND ON, OFF OFF TSQL_VARIABLES ON, OFF OFF
TEMP_EXTRACT_BINARY ON, OFF OFF
TEMP_EXTRACT_COLUMN_ string ’,’
IQ 12.6 DBISQL Options ( * = not supported by IQ )
DELIMITER DBISQL Option Values Default
TEMP_EXTRACT_NAME1 - string ’’ (empty string) AUTO_COMMIT ON, OFF OFF
TEMP_EXTRACT_NAME8 AUTO_REFETCH ON, OFF ON
^TEMP_EXTRACT_NULL_AS_EMPTY ON, OFF OFF BELL ON, OFF ON
TEMP_EXTRACT_NULL_AS_ZERO ON, OFF OFF COMMAND_DELIMITER string ’;’
TEMP_EXTRACT_QUOTE string ’’ (empty string) COMMIT_ON_EXIT ON, OFF ON
TEMP_EXTRACT_QUOTES ON, OFF OFF ^DEFAULT_ISQL_ENCODING identifier or string empty string
TEMP_EXTRACT_QUOTES_ALL ON, OFF OFF (use system
TEMP_EXTRACT_ROW_DELIMITER string ’’ (empty string) code page)
TEMP_EXTRACT_SIZE1 - AIX & HP-UX: 0 – 0 ECHO ON, OFF ON
TEMP_EXTRACT_SIZE8 64 GB, Sun Solaris:
HEADINGS ON, OFF ON
0 – 512 GB,
Windows: 0 – 128 INPUT_FORMAT*
GB ^ISQL_COMMAND_TIMING ON, OFF ON
TEMP_EXTRACT_SWAP ON, OFF OFF
TEMP_KB_PER_STRIPE integer > 0 in KB 1 ^ISQL_ESCAPE_CHARACTER single character \ (backslash)
TEMP_RESERVED_DBSPACE_MB integer > 0 in MB 200 ^ISQL_FIELD_SEPARATOR string , (comma)
^TEMP_SPACE_LIMIT_CHECK ON, OFF OFF ISQL_LOG file name ’’
TIME_FORMAT string ’HH:NN:ss.SSS’ ^ISQL_QUOTE string ' (single
TIMESTAMP_FORMAT string ’YYYY-MM-DD apostrophe)
HH:NN:ss.SSS’ NULLS ON, OFF NULL
TRIM_PARTIAL_MBC ON, OFF OFF ON_ERROR STOP, CONTINUE, PROMPT, PROMPT
EXIT, NOTIFY_CONTINUE,
TRUNCATE_WITH_AUTO_COMMIT ON, OFF ON
NOTIFY_STOP, NOTIFY_EXIT
USER_RESOURCE_RESERVATION integer 1
^OUTPUT_FORMAT ASCII, DBASEII, DBASEIII, ASCII
VIRTUAL_BACKUP ON, OFF OFF
EXCEL, FIXED, FOXPRO,
WASH_AREA_BUFFERS_PERCENT 1 to 100 20 HTML, LOTUS, SQL, XML
WAIT_FOR_COMMIT ON, OFF OFF
^OUTPUT_LENGTH integer 0
IQ 12.6 T-SQL Compatibility Options ( * = not supported by IQ ) ^OUTPUT_NULLS string 'NULL'
STATISTICS 0, 3, 4, 5, 6 3
T-SQL Compatibility Option Values Default +TRUNCATION_LENGTH integer 256
ALLOW_NULLS_BY_DEFAULT ON, OFF ON
ANSI_BLANKS*
ANSI_CLOSE_CURSORS_ON_ ON ON
ROLLBACK
ANSI_INTEGER_OVERFLOW*
ANSI_PERMISSIONS ON, OFF ON
ANSINULL ON, OFF ON
Sybase® IQ™ 12.6 Quick Reference Guide Page 11a Sybase® IQ™ 12.6 Quick Reference Guide Page 11b

IQ 12.6 Server Properties ( Use with the function “property” or use Server Property Description
sa_eng_properties to view all properties ) ^IsJavaAvailable Returns YES if the JavaVM is installed, and NO if the
JavaVM is not installed. This property only indicates if
Server Property Description the Java VM is available, not whether it is currently
ActiveReq The number of server threads that are currently being used.
handling a request. IsNetworkServer Returns YES if connected to a network database
AvailIO Reserved server, and NO if connected to a personal database
BuildChange Reserved server.
BuildClient Reserved IsRuntimeServer Returns YES if connected to the limited desktop
BuildProduction Undocumented runtime database server, and NO otherwise.
BuildReproducible Reserved JavaGlobFix Java VM global fixed size.
BytesReceived The number of bytes received during client/server ^JavaObjectsEnabled Undocumented
communications. Language The locale language for the server.
^BytesReceivedUncomp The number of bytes that would have been received LegalCopyright The copyright string for the software.
during client/server communications if compression LegalTrademarks Trademark information for the software.
was disabled. (This value is the same as the value for LicenseCount The number of licensed seats or processors.
BytesReceived if compression is disabled.) LicensedCompany The name of the licensed company.
BytesSent The number of bytes sent during client/server LicensedUser The name of the licensed user.
communications. ^LicensesInUse The number of concurrent users currently connected
^BytesSentUncomp The number of bytes that would have been sent to the network server, as determined by the number
during client/server communications if compression of unique client network addresses connected to the
was disabled. (This value is the same as the value for server.
BytesSent if compression is disabled.) LicenseType The license type. Can be networked seat (per-seat)
C2 Returns YES if the -sc option was used when the or cpu-based.
server was started. Otherwise, returns NO. LivenessTimeout The client liveness timeout default.
CacheHitsEng The number of database page lookups. LockedHeapPages The number of heap pages locked in the cache.
^CachePinned Undocumented ^MachineName The name or IP address of the computer running a
CacheReadEng Undocumented database server.
CacheReplacements The number of pages in the cache that have been MainHeapBytes The number of bytes used for global server data
replaced. structures.
CharSet The character set in use by the database server. MainHeapPages The number of pages used for global server data
^CommandLine The command line that was used to start the server. structures.
If the encryption key for a database was specified ^MapPhysicalMemoryEng Undocumented
using the -ek option, the key is replaced with a MaxCacheSize The maximum allowed cache size, in kilobytes.
constant string of asterisks in the value returned by MaxMessage The current maximum line number that can be
this property. (If you need to specify the encryption retrieved from the server’s message window. This
key, you can start the database server with the -ep
represents the most recent message displayed in the
option to be prompted for the key, or use the START
server’s message window.
DATABASE statement. As well, if the database can
+Message, linenumber A line from the server’s message window, prefixed by
be autostarted, the key can be provided in the
the date and time the message appeared. The
DBKEY connection parameter.)
second parameter specifies the line number. The
^CompactPlatformVer A condensed version of the PlatformVer property. value returned by PROPERTY ( "message" ) is the
CompanyName The name of the company owning this software. first line of output that was written to the Server
ConnsDisabled The number of connections disabled. Messages window. Calling PROPERTY ( "message",
^ConsoleLogFile Returns the name of the file where messages from i ) returns the i-th line of server output (with zero
the database server window are logged if the –o being the first line). The buffer is finite, so as
option was specified, otherwise returns an empty messages are generated, the first lines are dropped
string. and may no longer be available in memory. In this
CurrentCacheSize The current cache size, in kilobytes. case, NULL is returned.
DefaultCollation For IQ databases, a reasonable alternative to the ^MessageText, The text associated with the specified line number in
default collation. ISO_BINENG is the default collation linenumber the server’s message window, without a date and
for all IQ databases created as of version 12.4.2. This time prefix. The second parameter specifies the line
behavior differs from Adaptive Server Anywhere, number.
where the DefaultCollation server property shows the ^MessageTime, The date and time associated with the specified line
collation that would be used for new databases, if linenumber number in the server’s message window. The second
none is explicitly specified. parameter specifies the line number.
DiskReadEng Undocumented ^MessageWindowSize The maximum number of lines that can be retrieved
^FipsMode Returns YES if the -fips option was specified when from the server’s message window.
the database server was started, and NO otherwise. MinCacheSize The minimum allowed cache size, in kilobytes.
Not output by sa_eng_properties. MultiPacketsReceived The number of multi-packet deliveries received during
FreeBuffers The number of available network buffers. client/server communications.
^FunctionName Undocumented MultiPacketsSent The number of multi-packet deliveries sent during
^IdleTimeout The default idle timeout. client/server communications.
^IsFipsAvailable Returns YES if the FIPS DLL is installed, and NO Name The name of the server.
otherwise. Not output by sa_eng_properties.
^IsIQ Returns YES if the server is an IQ server.
Sybase® IQ™ 12.6 Quick Reference Guide Page 12a Sybase® IQ™ 12.6 Quick Reference Guide Page 12b

Server Property Description Server Property Description


^NativeProcessor On platforms where a processor can be emulated ^ProfileFilterUser Returns the name of the user being monitored if
Architecture (such as X86 on Win64), returns a string that procedure profiling for a specific user is turned on.
identifies the native processor type. In all other cases, Otherwise, returns an empty string. You control
it returns the same value as PROPERTY ( procedure profiling by user with the sa_server_-
‘ProcessorArchitecture’ ). Values can include : 32- option procedure. Not output by sa_eng_properties
bit Windows (not CE) - X86 ; NetWare - X86 ; Intel QuittingTime Shutdown time for the server. If none is specified, the
Solaris - X86 ; CE - SH3, SH4, MIPS or ARM ; 64-bit value is none.
Windows - IA64 or AMD64 64-bit ; UNIX - IA64 or RememberLastStatement Returns ON if the server is recording the last
AMD64 ; Solaris – SPARC ; AIX – PPC ; MAC OS – statement prepared by each connection, and OFF
PPC ; HP - PA_RISC ; DEC UNIX – ALPHA ; Linux - otherwise.
X86, SPARC, IA64 RemoteputWait The number of times the communication link has had
NumProcessorsAvail The number of processors on the server. to wait because it does not have buffers available to
NumProcessorsMax The maximum number of processors used. Normally send information. This statistic is collected for
this should be 2 for dbeng.exe and 0 for dbsrv.exe. NetBIOS and IPX protocols only.
^OmniIdentifier Undocumented Req The number of times the server has been entered to
PacketsReceived The number of client/server communication packets allow it to handle a new request or continue
received. processing an existing request.
^PacketsReceived The number of packets that would have been ^RequestFilterConn Undocumented
Uncomp received during client/server communications if ^RequestFilterDB Undocumented
compression was disabled. (This value is the same RequestLogFile The name of the request logging file. An empty string
as the value for PacketsReceived if compression is is returned if there is no level logging.
disabled.) +RequestLogging ALL, SQL, or NONE.
PacketsSent The number of client/server communication packets ^RequestLogNumFiles The number of request log files being kept. Not
sent. output by sa_eng_properties
^PacketsSentUncomp The number of packets that would have been sent ^RequestLogMaxSize Undocumented
during client/server communications if compression SendFail The number of times that the underlying
was disabled. (This value is the same as the value for communications protocols have failed to send a
PacketsSent if compression is disabled.) packet.
PageSize The size of the database server cache pages. This ^StartTime The date/time that the server started.
can be set using the -gp option, otherwise, it is the ^Tempdir The directory in which temporary files are stored by
maximum database page size of the databases the server.
specified on the command line. ^Threads Undocumented
PeakCacheSize The largest value the cache has reached in the
^TimeZoneAdjustment The number of minutes that must be added to the
current session, in kilobytes.
Coordinated Universal Time (UTC) to display time
Platform The operating system on which the software is local to the server.
running. For example, if you are running on Windows TotalBuffers The total number of network buffers.
2000, this property returns Windows2000. UnschReq The number of requests that are currently queued up
^PlatformVer The operating system on which the software is waiting for an available server thread.
running, including build numbers, service packs, etc.
For example, it could return Windows 2000 Build IQ 12.6 Database Properties ( Use with the function “db_property” or use
2195 Service Pack 3. sa_db_properties to view all database properties )
ProcessCPU CPU usage statistics for the server process. Values
are in seconds. This property is supported on Database Property Description
Windows NT/2000/XP, Windows 95/98/Me, and Alias The database name.
UNIX. This property is not supported on Windows CE ^AuditingTypes Undocumented
or NetWare. BlankPadding The status of the blank padding feature. Returns ON if
ProcessCPUSystem Process CPU system usage. Values are in seconds. the database has blank padding enabled.
This property is supported on Windows NT/2000/XP, ^BlobArenas The status of the BlobArenas feature. Returns ON if the
Windows 95/98/Me, and UNIX. This property is not database stores extension (BLOB) pages separately
supported on Windows CE or Net-Ware. from table pages for the database.
ProcessCPUUser Process CPU user usage. Values are in seconds. CacheHits The number of database page lookups satisfied by
This property is supported on Windows NT/2000/XP, finding the page in the cache.
Windows 95/98/Me, and UNIX. This property is not CacheRead The number of database pages that have been looked
supported on Windows CE or Net-Ware. up in the cache.
^ProcessorArchitecture A string that identifies the processor type. Values can CacheReadIndInt The number of index internal-node pages that have
include : 32-bit Windows (not CE) - X86 ; NetWare - been read from the cache.
X86 ; Intel Solaris - X86 ; CE - SH3, SH4, or ARM ; CacheReadIndLeaf The number of index leaf pages that have been read
64-bit Windows - IA64 or AMD64 64-bit ; UNIX - IA64 from the cache.
or AMD64 ; Solaris – SPARC ; AIX – PPC ; MAC OS CacheReadTable The number of table pages that have been read from
– PPC ; HP - PA_RISC ; DEC UNIX - ALPHA the cache.
ProductName The name of the software. ^Capabilities The capability bits enabled for the database. This
ProductVersion The version of the software being run. property is primarily for use by technical support.
^ProfileFilterConn Returns the ID of the connection being monitored if CaseSensitive The status of the case sensitivity feature. Returns ON if
procedure profiling for a specific connection is turned the database is case sensitive.
on. Otherwise, returns an empty string. You control ^CaseSensitive The status of password case sensitivity. In versions
procedure profiling by user with the sa_server_option Passwords 9.0.0 and later, password case sensitivity is
procedure. Not output by sa_eng_properties independent of database case sensitivity. Returns ON if
database passwords are case sensitive.
Sybase® IQ™ 12.6 Quick Reference Guide Page 13a Sybase® IQ™ 12.6 Quick Reference Guide Page 13b

Database Property Description Database Property Description


CharSet The character set of the database. ^DriveType dbspace The drive on which the database file is located. Returns
^CheckpointLogBitmap Undocumented CD, FIXED, RAMDISK, REMOTE, REMOVABLE, and
PagesWritten UNKNOWN. On UNIX, depending on the version of
^CheckpointLogBitmap Undocumented UNIX and the type of drive, it may not be possible to
Size determining the drive type. In these cases “UNKNOWN”
^CheckpointLogCommit Undocumented is returned. When used with db_extended_property,
ToDisk you can specify which dbspace you want the size for.
^CheckpointLogPage Undocumented dbspace can be either the name of the dbspace or the
InUse file_id of the dbspace. Leaving dbspace unspecified or
^CheckpointLogPages Undocumented using system both refer to the system dbspace. If the
Relocated specified dbspace does not exist, the property function
^CheckpointLogPages Undocumented returns NULL. If the name of a dbspace is specified and
Written the ID of a database that is not the database of the
current connection is also specified, the function also
^CheckpointLogSave Undocumented
returns NULL.
Preimage
^CheckpointLogSize Undocumented Encryption The type of encryption applied to the database. Returns
None, Simple, or AES.
^CheckpointLogWrites Undocumented
^ExprCacheAbandons Undocumented
CheckpointUrgency The time that has elapsed since the last checkpoint, as
a percentage of the checkpoint time setting of the ^ExprCacheDropsTo Undocumented
database. ReadOnly
^ExprCacheEvicts Undocumented
^Checksum Returns ON if database page checksums are enabled
for the database. ^ExprCacheHits Undocumented
Chkpt The number of checkpoints that have been performed. ^ExprCacheInserts Undocumented
ChkptFlush The number of ranges of adjacent pages written out ^ExprCacheLookups Undocumented
during a checkpoint. ^ExprCacheResumes Undocumented
ChkptPage The number of transaction log checkpoints. OfReadWrite
^ClusteredIndexes Undocumented ^ExprCacheStarts Undocumented
Collation Undocumented ExtendDB The number of pages by which the database file has
been extended.
CommitFile The number of times the server has forced a flush of
the disk cache. On Windows and NetWare platforms, ExtendTempWrite The number of pages by which temporary files have
the disk cache does not need to be flushed if been extended.
unbuffered (direct) IO is used. File The file name of the database root file, including path.
^CompressedBTrees Returns ON if Compressed B-tree indexes are ^FileSize dbspace When used with db_property, this property returns the
supported. file size of the system dbspace, in pages. When used
Compression The compression status of the database. Returns either with db_extended_property, you can specify which
ON (meaning the database is compressed) or OFF. If a dbspace you want the size for. dbspace can be either
write file is created on a compressed database, the the name of the dbspace, the file_id of the dbspace, or
write file is NOT compressed. Starting a write file temporary to refer to the temporary dbspace. You can
also specify translog to return the size of the log file.
created on a compressed database and selecting
Finally, you can specify writefile to refer to the write file.
db_property (‘compression’), returns OFF.
When using a write file, FileSize on a dbspace returns
ConnCount The number of connections to the database.
the amount of space in the virtual dbspace, represented
^CurrentRedoPos The current offset in the transaction log file where the
by the underlying dbspace plus the modifications to that
next database operation is to be logged.
dbspace that have been stored in the write file. Leaving
CurrIO The current number of file I/Os that were issued by the
the dbspace unspecified, or using system, both refer to
server but have not yet completed. the system dbspace. If the specified dbspace does not
CurrRead The current number of file reads that were issued by exist, the property function returns NULL. If the name of
the server but have not yet completed. a dbspace is specified and an id or name of a database
CurrWrite The current number of file writes that were issued by which is not the database of the current connection is
the server but have not yet completed. also specified, the function also returns NULL.
^DBFileFragments The number of database file fragments. This property is FileVersion The version of the database file. This does not
supported on Windows NT/2000/XP. correspond to a software release version.
DiskRead The number of pages that have been read from disk. ^FreePageBitMaps Returns ON if free database pages are managed
DiskReadIndInt The number of index internal-node pages that have via bitmaps.
been read from disk.
DiskReadIndLeaf The number of index leaf pages that have been read
from disk.
DiskReadTable The number of table pages that have been read from
disk.
DiskWrite The number of modified pages that have been written
to disk.
Sybase® IQ™ 12.6 Quick Reference Guide Page 14a Sybase® IQ™ 12.6 Quick Reference Guide Page 14b

Database Property Description Database Property Description


^FreePages dbspace FreePages is only supported on databases created LogFreeCommit The number of Redo Free Commits. A "Redo Free
with version 8.0.0 or later. When used with Commit" occurs when a commit of the transaction log is
db_property, this property returns the number of free requested but the log has already been written (so the
pages in the system dbspace. When used with commit was done for "free").
db_extended_property, you can specify which LogName The file name of the transaction log, including path.
dbspace you want the number of free pages for. LogWrite The number of pages that have been written to the
dbspace can be either the name of the dbspace, the transaction log.
file_id of the dbspace, or temporary to refer to the LTMGeneration The generation number of the LTM or Replication
temporary dbspace. You can also specify translog to Agent. This property is primarily for use by technical
return the number of free pages in the log file. Finally, support.
you can specify writefile to refer to the write file. When LTMTrunc The minimal confirmed log offset for the Replication
using a write file, FreePages on a dbspace returns the Agent.
number of free pages in the virtual dbspace, MapPages The number of map pages used for accessing the lock
represented by the underlying dbspace plus the table, frequency table, and table layout.
modifications to that dbspace that have been stored in
MaxIO The maximum value that CurrIO has reached.
the write file. Leaving the dbspace unspecified, or using
MaxRead The maximum value that CurrRead has reached.
system both refer to the system dbspace. If the
MaxWrite The maximum value that CurrWrite has reached.
specified dbspace does not exist, the property function
returns null. If the name of a dbspace is specified and MultiByteCharSet Returns ON if the database uses a multi-byte character
an id or name of a database which is not the database set.
of the current connection is also specified, the function Name The database name (identical to alias).
also returns null. ^NamedConstraints Undocumented
FullCompare The number of comparisons that have been performed PageRelocations The number of relocatable heap pages that have been
beyond the hash value in an index. read from the temporary file.
GetData Undocumented PageSize The page size of the Catalog Store, in bytes.
GlobalDBId The value of the GLOBAL_DATABASE_ID option used ^PreserveSource Returns ON if the database preserves the source for
to generate unique primary key values in a replication procedures and views.
environment. ProcedurePages The number of relocatable heap pages that have been
^HashForcedPartitions Undocumented used for procedures.
^HashRowsFiltered Undocumented ^ProcedureProfiling Returns ON if procedure profiling is turned on for the
database.
^HashRowsPartitioned Undocumented
^HashWorkTables Undocumented ^QueryBypassed The number of requests optimized by the optimizer
bypass.
^HistogramHashFix Undocumented
^QueryCachedPlans The number of cached execution plans across all
^Histograms Returns ON if optimizer statistics are maintained
connections.
as histograms.
^QueryCachePages The number of pages used to cache execution plans.
IdleCheck The number of times that the server’s idle thread has
become active to do idle writes, idle checkpoints, and ^QueryJHToJNLOpt Undocumented
so on. Used
IdleChkpt The number of checkpoints completed by the server’s ^QueryLowMemory The number of times the server changed its execution
idle thread. An idle checkpoint occurs whenever the idle Strategy plan during execution as a result of low memory
thread writes out the last dirty page in the cache. conditions. The strategy can change because less
memory is available than the optimizer estimated, or
IdleChkTime The number of 100ths of a second spent checkpointing
because the execution plan required more memory
during idle IO.
than the optimizer estimated.
IdleWrite The number of disk writes that have been issued by the
^QueryOptimized The number of requests fully optimized.
server’s idle thread.
IndAdd The number of entries that have been added to ^QueryBypassed The number of requests reused from the plan cache.
indexes. ^QueryRowsBuffer Undocumented
Fetch
^IndexStatistics Undocumented
IndLookup The number of entries that have been looked up in ^QueryRows Undocumented
indexes. Materialized
ReadOnly Returns ON if the database is being run in readonly
IOToRecover The estimated number of I/O operations required to
mode.
recover the database.
RecoveryUrgency An estimate of the amount of time required to recover
IQStore ON for all IQ databases. Reserved
the database.
JavaHeapSize Heap size per Java VM.
^RecursiveIterations Undocumented
JavaNSSize Java VM Namespace size.
^RecursiveIterations Undocumented
^JDKVersion The Java runtime library version used by this database.
Hash
Language Returns a comma-separated list of languages known to
^RecursiveIterations Undocumented
be supported by the database collation. The languages
Nested
are in two-letter ISO format. If the language is not
known (usually a custom collation), the return value is ^RecursiveJNLMisses Undocumented
NULL. ^RecursiveJNLProbes Undocumented
^LargeProcedureIDs Returns ON if 32-bit stored procedure IDs are RelocatableHeapPages The number of pages used for relocatable heaps
supported for the database. (cursors, statements, procedures, triggers, views, etc.).
RemoteTrunc The minimal confirmed log offset for the SQL Remote
LockTablePages The number of pages used to store lock information.
Message Agent.
^LogFileFragments The number of log file fragments. This property is
supported on Windows NT/2000/XP. RollbackLogPages The number of pages in the rollback log.
^SeparateCheckpoint Returns ON if the checkpoint log for the database is
Log maintained at the end of the SYSTEM dbspace.
Sybase® IQ™ 12.6 Quick Reference Guide Page 15a Sybase® IQ™ 12.6 Quick Reference Guide Page 15b

Database Property Description Connection Property Description


^SeparateForeignKeys Returns ON if primary and foreign keys are stored BlockedOn If the current connection is not blocked, this is zero.
separately. If it is blocked, the connection number on which the
^SortMergePasses Undocumented connection is blocked due to a locking conflict.
^SortRowsMaterialized Undocumented Blocking BLOCKING option [database]
^SortRunsWritten Undocumented ^Blocking_timeout BLOCKING_TIMEOUT option [database]
^SortSortedRuns Undocumented ^Blockmap_Prefetch_Size Undocumented
^SortWorkTables Undocumented ^BT_Prefetch_Max_Miss Undocumented
^StringHistogramsFix Undocumented BT_Prefetch_Size Undocumented
SyncTrunc The minimal confirmed log offset for the MobiLink client Buffer_Cache_Wash_ Undocumented
dbmlsync executable. Intensity
^TableBitMaps Returns ON if the database supports table bitmaps. ^BytesReceived The number of bytes received during client/server
^TablesQualTriggers Undocumented communications.
^TempFileName The file name of the database temporary file, including ^BytesReceivedUncomp The number of bytes that would have been received
path. during client/server communications if compression
^TempTablePages The number of pages in the temporary file used for was disabled. (This value is the same as the value
temporary tables. for BytesReceived if compression is disabled.)
^TransactionsSpan Returns ON if transactions can span multiple log files. ^BytesSent The number of bytes sent during client/server
Logs communications.
TriggerPages The number of relocatable heap pages used for ^BytesSentUncomp The number of bytes that would have been sent
triggers. during client/server communications if compression
^VariableHashSize Returns ON if the hash size can be specified for B-tree was disabled. (This value is the same as the value
indexes. for BytesSent if compression is disabled.)
ViewPages The number of relocatable heap pages used for views. Cache_Partitions Undocumented
CacheHits The number of successful reads of the cache.
IQ 12.6 Connection Properties ( Use with the function CacheRead The number of database pages that have been
“connection_property” or use sa_conn_properties / looked up in the cache.
sa_conn_properties_by_conn / sa_conn_properties_by_name to view all CacheReadIndInt The number of index internal-node pages that have
connection properties ) been read from the cache.
CacheReadIndLeaf The number of index leaf pages that have been
Connection Property Description read from the cache.
Abort_On_Error_File Undocumented CacheReadTable The number of table pages that have been read
Abort_On_Error_Line Undocumented from the cache.
Abort_On_Error_Number Undocumented Chained CHAINED option [compatibility]
Aggregate_Index_Cutover Undocumented CharSet The character set used by the connection.
Aggregation_Preference Undocumented Check_Alias_Enabled Undocumented
Allow_nulls_by_default ALLOW_NULLS_BY_DEFAULT option Checkpoint_time CHECKPOINT_TIME option [database]
[compatibility] Cis_option CIS_OPTION option [database]
Ansi_blanks ANSI_BLANKS option [compatibility] Cis_rowset_size Reserved
Ansi_close_cursors_on_ ANSI_CLOSE_CURSORS_ON_ROLLBACK option +ClientLibrary Returns jConnect for jConnect connections;
rollback [compatibility] CT_Library for Open Client connections; None for
Ansi_integer_overflow ANSI_INTEGER_OVERFLOW option [compatibility] HTTP connections, and CmdSeq for ODBC,
Ansi_permissions ANSI_PERMISSIONS option [compatibility] embedded SQL, OLE DB, ADO.NET,and iAnywhere
Ansi_update_constraints ANSI_UPDATE_CONSTRAINTS option JDBC driver connections.
[compatibility] ^ClientPort Returns the client’s TCP/IP port number or 0 if the
Ansinull ANSINULL option [compatibility] connection is not a TCP/IP connection.
Append_Load Undocumented Close_on_endtrans CLOSE_ON_ENDTRANS option [compatibility]
AppInfo Returns information about the client that made the Command_Stats Undocumented
connection. For HTTP connections, this includes Command_Stats_Verbosity Undocumented
information about the browser. For connections Commit The number of Commit requests that have been
using older versions of jConnect or Open Client, the handled.
information may be incomplete. The API value can CommLink The communication link for the connection. This is
be DBLIB, ODBC, OLEDB, or ADO.NET. one of the network protocols supported by IQ / ASA,
Ase_Binary_Display Undocumented or is "local" for a same-machine connection.
Attention_Limit Undocumented ^CommNetworkLink The communication link for the connection. This is
Auditing AUDITING option [database] one of the network protocols supported by Adaptive
^Auditing_options Undocumented Server Anywhere. Values can include
^AuditingTypes The types of auditing currently enabled. AUDITING SharedMemory, TCPIP, SPX, or NamedPipes. The
option [database] CommLinkNetwork property always returns the
Automatic_timestamp AUTOMATIC_TIMESTAMP option [compatibility] name of the link, regardless of whether it is same-
Background_priority BACKGROUND_PRIORITY option [database] machine or not.
Backup_Exec_Cmd Undocumented +CommProtocol Returns TDS for Open Client and jConnect
Backup_Free_Space Undocumented connections, HTTP for HTTP connections, and
Bit_Vector_Pinnable_ Undocumented CmdSeq for OLE DB, ADO.NET and iAnywhere
Cache_Percent JDBC driver connections.
BITMAP_Options1 Undocumented ^Compression Returns ON or OFF to indicate whether
Bitmap_Percent_Factor Undocumented communication compression is enabled on the
connection.
Sybase® IQ™ 12.6 Quick Reference Guide Page 16a Sybase® IQ™ 12.6 Quick Reference Guide Page 16b

Connection Property Description Connection Property Description


Connection_authentication A string used to authenticate the client. Escape_character ESCAPE_CHARACTER option [compatibility]
Authentication is required before the database can EventName The name of the associated event if the connection
be modified. is running an event handler. Otherwise, the result is
Continue_after_raiserror CONTINUE_AFTER_RAISERROR option NULL.
[compatibility] Exchange_Enabled Undocumented
Conversion_error CONVERSION_ERROR option [compatibility] Exchange_Unit_Size Undocumented
Convert_HG_To_1242 Undocumented ^Exclude_operators EXCLUDE_OPERATORS option [database]
Convert_Varchar_To_1242 Undocumented ^ExprCacheAbandons Undocumented
Cooperative_commit_ COOPERATIVE_COMMIT_TIMEOUT option ^ExprCacheDropsToRead Undocumented
timeout [database] Only
Cooperative_commits COOPERATIVE_COMMITS option [database] ^ExprCacheEvicts Undocumented
CORE_Options1 Undocumented ^ExprCacheHits Undocumented
+CORE_Options3 à 18 Undocumented ^ExprCacheInserts Undocumented
^CurrentProcedure Undocumented ^ExprCacheLookups Undocumented
Cursor The number of declared cursors that are currently ^ExprCacheResumesOf Undocumented
being maintained by the server. ReadWrite
Cursor_Window_Rows Undocumented ^ExprCacheStarts Undocumented
CursorOpen The number of open cursors that are currently being Extended_join_syntax EXTENDED_JOIN_SYNTAX option [database]
maintained by the server. Fire_triggers FIRE_TRIGGERS option [compatibility]
Database_authentication A string used to authenticate the database. First_day_of_week FIRST_DAY_OF_WEEK option [database]
Authentication is required before the database can Flatten_Subqueries Undocumented
be modified. Float_as_double FLOAT_AS_DOUBLE option [compatibility]
Date_First_Day_Of_Week Undocumented ^For_xml_null_treatment FOR_XML_NULL_TREATMENT option [database]
Date_format DATE_FORMAT option [compatibility] Force_Drop Undocumented
Date_order DATE_FORMAT option [compatibility] Force_Fixed_Width_ Undocumented
Dbcc_Log_Block_Numbers Undocumented Numerics
^Dbcc_Log_Progress Undocumented Force_No_Scroll_Cursors Undocumented
DBCC_Pinnable_Cache_ Undocumented ^Force_Updatable_Cursors Undocumented
Percent ^Force_view_creation FORCE_VIEW_CREATION option [database]
DBNumber The ID number of the database. ^FP_LOB_Workunit_ Undocumented
DDL_Information Undocumented MBSize
DDL_Options2 Undocumented FP_Lookup_Distinct_ Undocumented
^Debug_messages DEBUG_MESSAGES option [database] Check
^Dedicated_task DEDICATED_TASK option [database] FP_Lookup_Distinct_Ratio Undocumented
^Default_Having_ Undocumented FP_Lookup_Size Undocumented
Selectivity FP_Predicate_Workunit_ Undocumented
Default_Like_Match_ Undocumented Pages
Selectivity FP_Prefetch_Size Undocumented
Default_Like_Range_ Undocumented ^FPL_Expression_ Undocumented
Selectivity Memory_KB
Default_timestamp_ DEFAULT_TIMESTAMP_INCREMENT option FullCompare The number of comparisons that have been
increment [database] performed beyond the hash value in an index.
Delayed_commit_timeout DELAYED_COMMIT_TIMEOUT option [database] Garray_Fill_Factor_ Undocumented
Delayed_commits DELAYED_COMMITS option [database] Percent
Disable_RI_Check Undocumented Garray_Insert_Prefetch_ Undocumented
Disk_Striping Undocumented Size
Disk_Striping_Packed Undocumented Garray_Page_Split_Pad_ Undocumented
DiskRead The number of pages that have been read from Percent
disk. Garray_RO_Prefetch_Size Undocumented
DiskReadIndInt The number of index internal-node pages that have GetData Undocumented
been read from disk. Give_Error_On_Control_C Undocumented
DiskReadIndLeaf The number of index leaf pages that have been Global_database_id GLOBAL_DATABASE_ID option [database]
read from disk. Hash_Pinnable_Cache_ Undocumented
DiskReadTable The number of table pages that have been read Percent
from disk. Hash_Thrashing_Percent Undocumented
DiskWrite The number of modified pages that have been ^HashForcedPartitions Undocumented
written to disk. ^HashRowsFiltered Undocumented
Divide_by_zero_error DIVIDE_BY_ZERO_ERROR option [compatibility] ^HashRowsPartitioned Undocumented
DmContext_Display_Limit Undocumented ^HashWorkTables Undocumented
DML_Options1 à 8 Undocumented HG_Delete_Method Undocumented
DML_Options10 à 31 Undocumented HG_Search_Range Undocumented
+DML_Options 33 à 40 Undocumented Hos_MemCheck Undocumented
^Early_Predicate_ Undocumented Hpux_PBO_Shutdown Undocumented
Execution ^identity_enforce_ Undocumented
Early_Resource_Release Undocumented uniqueness
^Encryption Encryption connection parameter [ENC] ^identity_insert Undocumented
Sybase® IQ™ 12.6 Quick Reference Guide Page 17a Sybase® IQ™ 12.6 Quick Reference Guide Page 17b

Connection Property Description Connection Property Description


^IdleTimeout The idle timeout value of the connection. Main_Reserved_ Undocumented
IN_Subquery_Preference Undocumented DBSpace_MB
IndAdd The number of entries that have been added to Max_Cartesian_Result Undocumented
indexes. ^Max_Client_Numeric_ Undocumented
^Index_Advisor Undocumented Precision
Index_Preference Undocumented ^Max_Client_Numeric_ Undocumented
IndLookup The number of entries that have been looked up in Scale
indexes. Max_Cube_Result Undocumented
Infer_Subquery_Predicates Undocumented Max_cursor_count MAX_CURSOR_COUNT option [database]
Initialize_Memory_To_ Undocumented Max_Hash_Rows Undocumented
Ones_On_Allocation Max_hash_size Undocumented
IO_Exerciser_param_file Undocumented Max_IQ_Threads_Per_ Undocumented
^IQ_Utility_Prefetch_Size Undocumented Connection
^IQgovern_Max_priority Undocumented Max_IQ_Threads_Per_ Undocumented
^IQgovern_priority Undocumented Team
^IQgovern_priority_time Undocumented Max_Join_Enumeration Undocumented
IQMSG_Length_MB Undocumented Max_plans_cached MAX_PLANS_CACHED option [database]
Isolation_level ISOLATION_LEVEL option [compatibility] Max_Query_Parallelism Undocumented
Java_heap_size JAVA_HEAP_SIZE option [database] ^Max_Query_Time Undocumented
Java_input_output JAVA_INPUT_OUTPUT option [database] ^Max_recursive_iterations MAX_RECURSIVE_ITERATIONS option
Java_namespace_size JAVA_NAMESPACE_SIZE option [database] [database]
Java_page_buffer_size The page buffer size used by the Java VM Max_Spinlock_Loop Undocumented
JavaHeapSize The heap size per Java VM. Max_statement_count MAX_STATEMENT_COUNT option [database]
Join_Expansion_Factor Undocumented Max_Threads Undocumented
Join_Optimization Undocumented Max_Warnings Undocumented
Join_Preference Undocumented Max_work_table_hash_ Undocumented
Join_Simplification_ Undocumented size
Threshold Memory_Leaks_Visible Undocumented
Language The locale language Memory_Snapshot_First Undocumented
Large_Doubles_ Undocumented Memory_Snapshot_ Undocumented
Accumulator Increment
LastIdle The number of ticks between requests. ^MessageReceived The string that was generated by the MESSAGE
LastReqTime The time at which the last request for the specified statement that caused the WAITFOR statement to
connection started. be interrupted. Otherwise, an empty string is
LastStatement The most recently prepared SQL statement for the returned. Not output by sa_conn_properties
current connection. Min_NLPDJ_Table_Size Undocumented
LF_Bitmap_Cache_KB Undocumented Min_password_length MIN_PASSWORD_LENGTH option [option]
^LivenessTimeout The liveness timeout period for the current Min_SMPDJ_or_HPDJ_ Undocumented
connection. Filtered_Size
Load_Memory_MB Undocumented Min_SMPDJ_or_HPDJ_ Undocumented
^LOB_Prefetch_Size Undocumented Indirect_Size
^Local_KB_Per_Stripe Undocumented Min_SMPDJ_or_HPDJ_ Undocumented
^Local_Reserved_ Undocumented Table_Size
DBSpace_MB ^Min_table_size_for_ Undocumented
^Lock_rejected_rows Undocumented histogram
Lock_rejected_rows Reserved Minimize_Storage Undocumented
LockName A 64-bit unsigned integer value representing the ^Monitor_Output_Directory Undocumented
lock for which a connection is waiting. Mutex_Trigger_Percent Undocumented
Log_Connect Undocumented Mutex_Trigger_Threshold Undocumented
Log_Cursor_Operations Undocumented Mutex_Trigger_Try_Ratio_ Undocumented
^Log_detailed_plans Undocumented Threshold
^Log_max_requests Undocumented N_Emerg_Buffers Undocumented
^Log_deadlocks LOG_DEADLOCKS option [database]. Not output Name The name of the server.
by sa_conn_properties Nearest_century NEAREST_CENTURY option [compatibility]
LogFreeCommit The number of Redo Free Commits. A "Redo Free No_Row_Reject Undocumented
Commit" occurs when a commit of the transaction NodeAddress The node for the client in a client/server connection.
log is requested but the log has already been When the client and server are both on the same
written (so the commit was done for "free"). machine, an empty string is returned.
Login_mode LOGIN_MODE option [database] NoExec Undocumented
Login_procedure LOGIN_PROCEDURE option [database] Non_Ansi_Null_varchar NON_ANSI_NULL_VARCHAR option
^LoginTime The date and time the connection was established. Non_keywords NON_KEYWORDS option [compatibility]
Not output by sa_conn_properties Notify_Modulus Undocumented
LogWrite The number of pages that have been written to the Number The ID number of the connection.
transaction log. Numeric_Overflow_Error Undocumented
Main_Cache_Memory_MB Undocumented
^Main_KB_Per_Stripe Undocumented
Sybase® IQ™ 12.6 Quick Reference Guide Page 18a Sybase® IQ™ 12.6 Quick Reference Guide Page 18b

Connection Property Description Connection Property Description


^ODBC_describe_binary_ ODBC_DESCRIBE_BINARY_AS_VARBINARY Query_Rows_Returned_ Undocumented
as_varbinary option [database]. Not output by Limit
sa_conn_properties Query_Temp_Space_Limit Undocumented
^ODBC_distinguish_char_ ODBC_DISTINGUISH_CHAR_AND_VARCHAR Query_Timing Undocumented
and_varchar option [database] ^QueryBypassed The number of requests optimized by the optimizer
^On_charset_conversion_ ON_CHARSET_CONVERSION_FAILURE option bypass.
failure [database] ^QueryCachedPlans The number of query execution plans currently
On_tsql_error ON_TSQL_ERROR option [compatibility] cached for the connection.
^Optimistic_wait_for_ OPTIMISTIC_WAIT_FOR_COMMIT option ^QueryCachePages The number of pages used to cache execution
commit [compatibility] plans.
Optimization_goal OPTIMIZATION_GOAL option [database] ^QueryJHToJNLOptUsed Undocumented
Optimization_level Reserved ^QueryLowMemory The number of times the server changed its
^Optimization_logging Undocumented Strategy execution plan during execution as a result of low
^Optimization_workload OPTIMIZATION_WORKLOAD option [database] memory conditions. The strategy can change
OS_File_Cache_Buffering Undocumented because less memory is available than the
OS_Option_Crash Undocumented optimizer estimated, or because the execution plan
OS_Options2 Undocumented required more memory than the optimizer
Out_Of_Disk_Message_ Undocumented estimated.
Repeat ^QueryOptimized The number of requests that have been fully
Out_Of_Disk_Wait_Time Undocumented optimized.
^PacketSize The packet size used by the connection, in bytes. ^QueryReused The number of requests that have been reused from
^PacketsReceived The number of client/server communication packets the plan cache.
received. ^QueryRowsBufferFetch Undocumented
^PacketsReceivedUncomp The number of packets that would have been ^QueryRowsMaterialized Undocumented
received during client/server communications if Quoted_identifier QUOTED_IDENTIFIER option [compatibility]
compression was disabled. (This value is the same ^Read_past_deleted READ_PAST_DELETED option [database]
as the value for PacketsReceived if compression is Recovery_time RECOVERY_TIME option [database]
disabled.) ^RecursiveIterations Undocumented
^PacketsSent The number of client/server communication packets ^RecursiveIterationsHash Undocumented
sent. ^RecursiveIterationsNested Undocumented
^PacketsSentUncomp The number of packets that would have been sent ^RecursiveJNLMisses Undocumented
during client/server communications if compression ^RecursiveJNLProbes Undocumented
was disabled. (This value is the same as the value ^Remote_idle_timeout REMOTE_IDLE_TIMEOUT option [database]. Not
for PacketsSent if compression is disabled.) output by sa_conn_properties
Parallel_GBH_Enabled Undocumented Replicate_all REPLICATE_ALL option [replication]
^Parallel_GBH_Min_ Undocumented ReqType A string for the type of the last request.
Rows_Per_Unit Return_date_time_as_ RETURN_DATE_TIME_AS_STRING option
Parallel_GBH_Units Undocumented string [database]
Percent_as_comment PERCENT_AS_COMMENT option [compatibility] Return_java_as_string Undocumented
^Pinned_cursor_percent_ PINNED_CURSOR_PERCENT_OF_CACHE option RI_Trigger_time RI_TRIGGER_TIME option [compatibility]
of_cache [database] Rlbk The number of Rollback requests that have been
Precision PRECISION option [database] handled.
Prefetch PREFETCH option [database] RollbackLogPages The number of pages in the rollback log.
Prefetch_Buffer_Limit Undocumented Row_Count Undocumented
Prefetch_Buffer_Percent Undocumented Row_counts ROW_COUNTS option [database]
Prefetch_FP_Percent Undocumented ROW_Prefetch_Size Undocumented
Prefetch_Garray_Percent Undocumented Scale SCALE option [database]
^Prefetch_LOB_Percent Undocumented ^Secondary_File_Error Undocumented
Prefetch_Sort_Percent Undocumented ^ServerPort Returns the server’s TCP/IP port number or 0.
Prefetch_Threads_Percent Undocumented SignificantDigitsForDouble Undocumented
Prepares The number of statement preparations carried out. Equality
PrepStmt The number of prepared statements currently being ^Sort_collation SORT_COLLATION option [database]
maintained by the server. Sort_Phase1_Helpers Undocumented
^Preserve_source_format PRESERVE_SOURCE_FORMAT option [database] Sort_Pinnable_Cache_ Undocumented
Percent
^Prevent_article_pkey_ PREVENT_ARTICLE_PKEY_UPDATE option ^SortMergePasses Undocumented
update [database] ^SortRowsMaterialized Undocumented
Query_Detail Undocumented ^SortRunsWritten Undocumented
Query_Name Undocumented ^SortSortedRuns Undocumented
Query_Plan Undocumented ^SortWorkTables Undocumented
Query_Plan_After_Run Undocumented SQL_flagger_error_level SQL_FLAGGER_ERROR_LEVEL option
Query_Plan_As_HTML Undocumented [compatibility]
^Query_Plan_As_HTML_ Undocumented SQL_flagger_warning_ SQL_FLAGGER_WARNING_LEVEL option
Directory level [compatibility]
Query_plan_on_open QUERY_PLAN_ON_OPEN option [compatibility] Stats_Condition_Variables Undocumented
Stats_Mutexes Undocumented
Sybase® IQ™ 12.6 Quick Reference Guide Page 19a Sybase® IQ™ 12.6 Quick Reference Guide Page 19b

Connection Property Description Connection Property Description


Stats_Recursive_Mutexes Undocumented Tsql_hex_constant TSQL_HEX_CONSTANT option [compatibility]
Stats_Recursive_RW_ Undocumented Tsql_variables TSQL_VARIABLES option [compatibility]
Locks UncommitOp The number of uncommitted operations
Stats_RW_Locks Undocumented Unicode_Collation_Name Undocumented
Stats_Semaphores Undocumented ^Update_statistics Undocumented
Stats_Spinlocks Undocumented Upgrade_database_ Undocumented
Stats_Threads Undocumented capability
String_rtruncation STRING_RTRUNCATION option [compatibility] ^User_estimates USER_ESTIMATES option [database]
^Subquery_Placement_ Undocumented User_Resource_ Undocumented
Preference Reservation
^Subsume_row_locks SUBSUME_ROW_LOCKS option [database] ^UserAppInfo The string specified by the AppInfo connection
^Suppress_TDS_ SUPPRESS_TDS_DEBUGGING option [database] parameter in a connection string.
debugging Userid The user ID for the connection.
Sweeper_Threads_Percent Undocumented UtilCmdsPermitted Returns ON or OFF to indicate whether utility
TDS_Empty_string_is_null TDS_EMPTY_STRING_IS_NULL option [database] commands such as CREATE DATABASE, DROP
Temp_Cache_Memory_MB Undocumented DATABASE, and RESTORE DATABASE are
Temp_Extract_Append Undocumented permitted for the connection.
Temp_Extract_Binary Undocumented Virtual_Backup Undocumented
Temp_Extract_Column_ Undocumented Wait_for_commit WAIT_FOR_COMMIT option [database]
Delimiter Wash_Area_Buffers_ Undocumented
^Temp_Extract_Directory Undocumented Percent
Temp_Extract_Name1 à 8 Undocumented Starting IQ 12.6
Temp_Extract_Null_As_ Undocumented
Empty start_asiq -n server-name [ server-options ] [ database-file [ database-options ] ]
Temp_Extract_Null_As_ Undocumented
Zero IQ 12.6 Start Server Options
Temp_Extract_Quote Undocumented
Server Option Description
Temp_Extract_Quotes Undocumented @filename Read in options from configuration file
Temp_Extract_Quotes_All Undocumented @envvar Read in options from environment variable
Temp_Extract_Row_ Undocumented -c cache-size Set initial Catalog Store cache size.
Delimiter -ca 0 Disable dynamic Catalog Store cache sizing
Temp_Extract_Size1 à 8 Undocumented -ch cache-size Set Catalog Store cache size upper limit (not recommended)
Temp_Extract_Swap Undocumented -cl cache-size Set the cache size lower limit (not recommended)
^Temp_KB_Per_Stripe Undocumented + -ct { + | - } Enable character-set translation (enabled by default)
Temp_Reserved_ Undocumented ^ -cw Enable use of Address Windowing Extensions on Windows
DBSpace_MB 2000, Windows XP, and Windows Server 2003 for setting the
^Temp_space_limit_check TEMP_SPACE_LIMIT_CHECK option [database] size of the database server cache.
^TempFilePages Undocumented ^ -ec encryption- Enable packet encryption [network server].
^TempTablePages The number of pages in the temporary file used for options
temporary tables. ^ -ek key-spec Starts an encrypted database, when key value is provided as
Test_Attention_Location Undocumented an argument.
Thread_count THREAD_COUNT option ^ -ep (Windows) Displays a dialog box that prompts you for an
Thread_stack Thread stack size encryption key to start an encrypted database. Provides extra
Thread_Stacksize_KB Undocumented security by never allowing the encryption key to be seen in
Thread_swaps Reserved clear text.
ThreadMgr_Silence Undocumented -ga Automatically unload database after last connection closed
ThreadMgr_SpecialPool Undocumented -gb level Set database process priority class to level [Windows]
Time_format TIME_FORMAT option [compatibility] -gc num Set checkpoint timeout period to num minutes
^Time_zone_adjustment Undocumented -gd level Set the permission required to start and stop databases
Timestamp_format TIMESTAMP_FORMAT option [compatibility] -ge size Sets the stack size for threads that run external functions
^TimeZoneAdjustment The number of minutes that must be added to the [Windows]
Coordinated Universal Time (UTC) to display time -gk level Set the permission required to stop the server
local to the connection. By default, the value is set -gl level Set the permission required to load data
according to the client’s time zone. -gm num Limit the number of connections to the server that can be
^TransactionStartTime A string containing the time the database was first active at one time. If this number is greater than the number
modified after a COMMIT or ROLLBACK, or an that is allowed under licensing constraints, it has no effect.
empty string if no modifications have been made to The value should approximate the number of users expected
the database since the last COMMIT or to connect to the server. The default is 10 connections.
ROLLBACK. -gn num Set the number of execution threads that will be used for the
Trim_Partial_MBC Undocumented Catalog Store and connectivity while running with multiple
Truncate_date_values TRUNCATE_DATE_VALUES option [database] users.
(deprecated) -gp size Set maximum page size to size bytes
Truncate_timestamp_ TRUNCATE_TIMESTAMP_VALUES option -gr n u m Set maximum recovery time to num minutes
values [database] -gu level Utility commands permission level: utility_db, all, none, dba
Truncate_with_auto_ TRUNCATE_WITH_AUTO_COMMIT option -h or ? Display usage information
commit [database] -iqgovern num Specify the number of concurrent queries
Sybase® IQ™ 12.6 Quick Reference Guide Page 20a Sybase® IQ™ 12.6 Quick Reference Guide Page 20b

Server Option Description IQ 12.6 Start Database Options


-iqlocalreplay { Specify what gets recreated during TLV log replay from the
all | none | [ local store after IQ server synchronization. The default is Database Option Description
grants | -iqlocalreplay all. -m Truncate transaction log after checkpoint
procedures | -n name Name the database. Note : There are two -n options. The -n
views ] ...} option is positional. If it appears after a database file name, it
-iqmc size Specify the main cache size in MB. (Overrides default.) is a database option. Otherwise, it is a server option.
+ -iqmpx_ov 1 For use starting multiplex databases only. Starts the server IQ 12.6 Start Multiplex Options
with override to acknowledge that the write server is starting
(1) on a different host, (2) with a different server name, or (3) Multiplex Option Description
using a different path to its catalog (.db) file. Do not start two -iqmpx_ov 1 For use starting multiplex databases only. Starts the server
write servers against the same database. with override to acknowledge that the write server is starting
-iqmpx_sn 1 For use starting multiplex databases only. Starts the write (1) on a different host, (2) with a different server name, or (3)
server in single-node operating mode, for certain types of using a different path to its catalog (.db) file. Do not start two
recovery. write servers against the same database.
-iqmt num Specify the number of threads that IQ can use on a multi- -iqmpx_sn 1 For use starting multiplex databases only. Starts the write
threaded system. The default is 60*numCPU+2*num_conn+1. server in single-node operating mode, for certain types of
The minimum value is 2*num_conn+1. recovery. Query server(s) cannot run while the write server is
^ -iqnumbercpus Override the number of physical CPUs with the number in single-node mode.
num available to IQ
-iqpartition num Specify number of partitions in main and temp buffer caches IQ 12.6 Recommended dbremote Options for Multiplex Servers
(power of 2)
Option Description
-iqtc size Specify temporary cache size in MB. (Overrides default.) -iqmpx_ov 1 Closes window when finished
-iqtss size Specify the thread stack size in KB. -o output_filename Specifies an output file
-iqwmem size Specify the size in MB of a special memory pool that cannot -q Runs minimized
be paged for HP and Sun UNIX platforms -v Specifies verbose output
-m Truncate transaction log after checkpoint
-n name Use name as the name of the database server. Note : There IQ 12.6 Start Options for Recovery
are two -n options. The -n option is positional. If it appears
after a database file name, it has a different meaning. Recovery Option Description
-o filename Output server messages to the specified file -iqdroplks dbname Allow the sp_iqcheckdb stored procedure to recover leaked
storage within the specified database.
-os size Specify maximum size of file for server messages
-p packet-size Set maximum network packet size -iqfrec dbname Mark the specified database as in use and restore database
to its last known consistent state.
^ -qi Control whether database server tray icon and window
appear [Windows] IQ 12.6 Database Administration Utilities
^ -qp Do not display messages about performance in the database
server window CP874toUTF8 [ CP874InputFile ]
^ -qs Suppress startup error dialogs [Windows] dbcollat [ options ] output-file
^ -qw Do not display database server screen
-s Set the syslog facility ID (none, user, daemon, local0,..., dbinfo [ options ]
local7) [UNIX] dbisql [ options ] [ dbisql-command | command-file ]
^ -sb { 0 | 1 } Specify how the server reacts to broadcasts on TCP/IP
+ -ti min Client idle time before shutdown : default 4400 minutes dbisqlc [ options ] [ dbisqlc-command | command-file ]
-tl sec Default liveness timeout for clients in seconds : default is 120 dblocate [ options ]
seconds
-tq time Set quitting time dblog [ options ] database-file
-ud Run as a daemon [UNIX] (not recommended for IQ) dbping [ options ]
-ut min Touch temporary files every min minutes [UNIX]
+ -v or -v2 Display database server version and stop dbstop [ options ] server-name
-x list Comma separated list of communication links to try ^ dbtran [ options ] transaction-log [ SQL file ]
^ -xs comm- Specify server side web services communications protocols.
protocol dbvalid [ options ] [ object-name,... ]
-z Provide diagnostic information on communication links
^ iqdsn [ modifier-options ]
^ -zl Capture most recently-prepared SQL statement for each { –l [ u ] [ s ] [ qq ]
connection to a database on the server | –d [ u ] [ s ]dsn
-zo Specify file for logging server requests | –g [ u ] [ s ] dsn
-zr level Enable server request-level logging | –w [ u ] [ s ] dsn [details-options;...]
-zs { integer | Specify maximum size of file for server request logging | –cl [ qq ] }
integerG |
integerK | sqlpp [ options ] sql-filename [ output-filename ]
integerM }
Sybase® IQ™ 12.6 Quick Reference Guide Page 21a Sybase® IQ™ 12.6 Quick Reference Guide Page 21b

IQ 12.6 Connection Parameters IQ 12.6 Network Communications Parameters


Connection Parameter Code Usage Default N/W Parameter Code Usage Default
AppInfo App Anywhere Empty string ^Broadcast BCAST TCP/IP All address on
AutoPreCommit AutoPre ODBC NO the same subnet
Commit ^Broadcast BLISTENER TCP/IP (Server side) YES
AutoStart Astart Anywhere YES Listener
AutoStop Astop Embedded YES ^Cetificate HTTP, HTTPS None
databases ^Cetificate_ HTTP, HTTPS None
CharSet CS Anywhere Locale character set Password
+CommBufferSize CBSize Anywhere 1460 bytes ClientPort CPort TCP/IP (Client side Assigned
CommLinks Links Anywhere Use only the shared only) dynamically
memory ^DatabaseName DBN HTTP, HTTPS AUTO
communications link DoBroadcast DBROAD TCP/IP (all platforms) ALL
to connect DLL TCP/IP (Windows) ws2_32.dll
ConnectionName CON Not available for No connection name Host IP TCP/IP No additional
ODBC machines.
DatabaseFile DBF Embedded None ^LDAP LDAP TCP/IP (Server side NO
databases only)
DatabaseName DBN Running network None ^LocalOnly LOCAL TCP/IP, HTTP, HTTPS NO
servers ^LogFile LOG HTTP, HTTPS None
DatabaseSwitches DBS Connecting to a No switches ^LogFormat LF HTTP, HTTPS @T - @W - @I -
server when the @P - "@M @U
database is not @V" - @R - @L -
loaded. @E
DataSourceName DSN Anywhere None ^LogMaxSize LSIZE HTTP, HTTPS 0
^DBKEY DBKEY On database Databases are not ^LogOptions LOPT HTTP, HTTPS ALL
startup encrypted ^MaxConnections MAXCONN HTTP, HTTPS Number of
DisableMultiRowFetch DMRF Anywhere NO licensed
EngineName ENG Network servers The default local connections
database server MaxRequestSize MAXSIZE HTTP, HTTPS 100 KB
EncryptedPassword ENP Anywhere None MyIP ME TCP/IP, HTTP, HTTPS None
Encryption ENC Varies No encryption PreFetchOnOpen ODBC NO
FileDataSourceName FileDSN Anywhere None ^ReceiveBuffer RCVBUFSZ TCP/IP Machine
^Idle IDLE Varies Value of -ti Size dependent
Integrated INT Anywhere NO ^SendBufferSize SNDBUFSZ TCP/IP Machine
^Language LANG Anywhere As specified in dependent
ASLANG variable or +ServerPort PORT TCP/IP (all platforms), 2638
the installer HTTP, HTTPS
^LazyClose LCLOSE Anywhere NO Sessions NetBIOS (Server side Operating system
LivenessTimeout LTO Network server 120 seconds only) specific. On
on TCP/IP Windows NT, the
LogFile LOG Anywhere No log file default is 16.
Password PWD Anywhere No password TDS TCP/IP, NamedPipes YES
provided (Server side only)
+PrefetchBuffer PBUF Anywhere 64 (KB) +Timeout TO TCP/IP (all platforms), 5 seconds
PrefetchRows PROWS Anywhere 10 HTTP, HTTPS
ServerName ENG Network servers The default local VerifyServer Verify TCP/IP (Client only) YES
database server Name
StartLine START Embedded No StartLine
databases parameter
Unconditional UNC Anywhere NO
Userid UID Anywhere None
Sybase® IQ™ 12.6 Quick Reference Guide Page 22a Sybase® IQ™ 12.6 Quick Reference Guide Page 22b

Disclaimer

The information contained in this quick reference guide has been copied verbatim from the IQ 12.6
Technical Library’s Reference Manual. The only changes made were for formatting and correcting
obvious mistakes; and validating the procedures and server, database and connection properties
information. The information above could still contain errors, so please do not hold the information as
gospel.

Version 1.0 : Raymond Mardle, 6 th June 2005

Sources

The template for this quick reference guide was the Replication Server quick reference guide created by
Rob Verschoor (see http://www.sypron.nl/).

The information came from the Sybase IQ 12.6 Technical Library

How to assemble the pages into a booklet:

1. Print the file (paper size should be A4). You may need to adjust the page margins or the space
between the columns if it doesn't print correctly; there should be about 7 millimetres (~ 5/12 inch) free
space at the left and right margins (if you can't get it printed correctly, you can always change the lay-
out to 1 column/page, and so some manual cut-and-pasting).

2. Cut off the blank bottom part of the pages

3. Fold the printed pages, so that there is one column on each folded side.

4. Stack the folded pages

5. Staple the folded pages together at the left-hand margin

6. If you don't like the sight of those staples, cover them with a bit of sticky tape.

print pages fold pages stack folded staple pages cover


paper size = pages staples with
A4 tape

page 3a
1b page 2a
page 1a page 1b page 1a page 1a

(discard)

You might also like