This section introduces the new features in Adaptive Server Anywhere version 9.0.1. It provides an exhaustive listing of major and minor new features, with cross references to locations where each feature is discussed in detail.
OLAP query extensions A set of online analytical processing (OLAP) features enable more detailed analysis of the data in your database. The enhancements include the ability to add subtotal rows into result sets in a flexible way using CUBE and using GROUPING SETS, as well as window functions that provide rolling averages and other advanced features.Support for these OLAP features is built in to the Query Editor, which lets you build queries that use ROLLUP, CUBE, and GROUPING SETS operations.
LOAD TABLE enhancements The LOAD TABLE statement now has a clause that allows you to limit the statistics that are created, allowing faster table loading. It also has a SKIP option that allows you to ignore the first few lines of a file.
See LOAD TABLE statement.
SELECT ... INTO base-table This new SELECT syntax creates a base table and fills that table with data from a query.
See SELECT statement.
Extended support for variables in SQL statements Several statements have been made more flexible by permitting variables as well as constants in some locations. This is especially useful in stored procedures and batches, where variables can be declared and used. It provides functionality previously only available, in more cumbersome form, in EXECUTE IMMEDIATE.
The following statements have this extended support for variables:
The TOP clause of the SELECT statement can now reference integer variables as well as constants. See SELECT statement.
BACKUP statement backup-directory and archive-root. See BACKUP statement.
RESTORE statement filename, archive-root, and new dbspace-name. See RESTORE DATABASE statement.
LOAD TABLE statement filename. See LOAD TABLE statement.
UNLOAD statement and UNLOAD TABLE statement filename.
For information, see SET statement [T-SQL].
See ALTER VIEW statement.
Also, a DEBUG ONLY clause has been added to the MESSAGE statement. When the debug_messages option is set to ON, debugging messages appear for all stored procedures and triggers that contain a MESSAGE statement that includes the DEBUG ONLY clause.
Database page checksums Database page checksums are used to detect whether a database page has been modified on disk. When a database is created with checksums enabled, a checksum is calculated for each page before it is written to disk. When a page is read from disk, its checksum is calculated again and compared to the stored checksum. If the values are different, the page has been modified or otherwise corrupted while on disk. Existing databases must be unloaded and reloaded into a database with checksums enabled to use this feature. You can check whether checksums are enabled for a database using the Checksum property.
Many enhancements have been made to provide better performance for a wide range of tasks, including complex queries. Some of these enhancements are purely internal. Others are listed here:
Clustered Hash Group By algorithm For better performance, the Adaptive Server Anywhere query optimizer can use a new algorithm that is particularly useful for certain classes of GROUP BY queries where the HAVING clause returns a small proportion of rows.
Database server cache warming Three new database server command line options have been added to support cache warming. Cache warming is designed to help reduce the execution times of the initial queries executed against a database by pre-loading the database server's cache with database pages that were referenced the last time the database was started. Using cache warming can improve performance when the same queries are executed against the database each time it is started.
Optimizer hints WITH (XLOCK) is a new table hint feature in the FROM clause. XLOCK indicates that rows processed by the statement from the hinted table are to be locked exclusively. The affected rows remain locked until the end of the transaction. It works at all isolation levels.The WITH INDEX hint forces the optimizer to use a specified index during query optimization. This is an advanced feature that may lead to poor performance if used incorrectly, and so should be used by experienced users only.
Increased default stack size for internal execution threads on NetWare The default stack size for internal execution threads on NetWare has been increased to 128 KB.
See -gss server option.
InstallShield projects SQL Anywhere studio now includes InstallShield Merge Module Projects and Object Projects. These projects allow InstallShield to generate Merge Modules and Objects with which you can redeploy the software currently installed on your computer. Previous versions of SQL Anywhere included the Merge Modules and Objects. These allowed you to redeploy the original software, but provided no convenient means of deploying after you had applied an EBF.
BACKUP enhancements The BACKUP statement now includes an ON EXISTING ERROR clause for image backups. When this clause is specified, an error occurs if any of the files to be created during the backup already exist.
The archive backup form of the BACKUP statement has been extended to support options previously available only with image backups.
See BACKUP statement.The Backup utility can now create a backup on the server computer. Previously, the utility could only create backups on the client computer.
Unload utility (dbunload) enhancements The Unload utility now automatically handles view dependencies when unloading databases. The -j option that was used in previous versions of the software to output view definitions multiple times to the reload.sql file has been deprecated. Now, the Unload utility automatically handles unloading view definitions that depend on other views.
The Unload utility also allows you to change the database page size when unloading into a new database.
Server Enumeration utility (dblocate) enhancements The Server Enumeration utility (dblocate) now allows you to supply a host name or IP address to limit the search for database servers to a specific computer. As well, it supports a -n option that specifies that IP addresses are not to be resolved into computer names, which results in better performance.
Adaptive Server Anywhere Console utility supports integrated logins When you connect to the Adaptive Server Anywhere Console (dbconsole) utility on Windows NT/2000/XP, the Connect window allows you to use an integrated login to connect to the database.
The request log file size can be changed without restarting the database server On starting the database server, you can specify the size of the request log file with the -zs server option. You can use the sa_server_option system procedure to change the size of the request log file without restarting the database server.
Additional information added for profiling system triggers The sa_procedure_profile system procedure and sa_procedure_profile_summary system procedure now return extra information about system triggers when procedure profiling is turned on in the database.
New collations There are two new collations available: one to support Lithuanian (1257LIT, ANSI Code Page 1257) and one to support Turkish (1254TRKALT). This Turkish collation considers I-dot and I-no-dot equal.
dedicated_task option When specified, a request handling task is dedicated to handling requests from a single connection. This pre-established connection allows you to gather information about the state of the database server if it becomes otherwise unresponsive.
Interactive SQL allows you to specify the encoding used to read and write files The Interactive SQL READ, INPUT, and OUTPUT statements now support an optional encoding clause that allows you to specify the character encoding that is used to read or write the file. The default_isql_encoding option has been added to allow you to specify the character encoding that is used for subsequent READ, INPUT, and OUTPUT statements.You can also specify the character encoding used to read or write the file when using the Interactive SQL import and export wizards.
Interactive SQL allows you to specify the initial folder used for file browsing When browsing for files in Interactive SQL, you can specify whether Interactive SQL uses the current directory (as defined by the operating system) for the initial directory, or the last folder where a file was opened.
Sybase Central allows you to configure the font used for displaying result sets You can choose the font, font style, and point size for data that appears on the Data tab in Sybase Central when a table is selected.
Create Remote Server wizard now supports creating external login for current user The Create Remote Server wizard now allows you to create an external login for the current user so that you do not have to create an external login before you create the remote server.
Columns can be sorted using the View menu in Sybase Central The Sybase Central View menu has a Sort item that allows you to sort columns in the right pane as an alternative to clicking the column headings in the right pane.
Proxy Table wizard now displays primary key column information Previously, when creating a proxy table using the Proxy Table wizard, there was no way to determine which columns belonged to the remote table's primary key. Now, the columns in the primary key are identified in the wizard.
Utility wizards can be canceled The Upgrade Database wizard, Backup Database wizard, Restore Database wizard, Validate Database wizard, Compress Database wizard, Uncompress Database wizard, and the Create Backup Images wizard can be canceled. They also include a messages window that displays status information about whether the operation has succeeded or failed.
Sybase Central supports account names of the form domain\user when creating and editing services The Create Service wizard and Service properties window now allow you to enter account names of the form domain\user when creating and editing services. You can enter the account name in the Other Account field on the Account tab of the Service properties window or in the Create Service wizard.
Database server uses asynchronous I/O on Linux platforms When running the database server on Linux, the database server uses asynchronous I/O by default when possible. The -ua database server option allows you to turn off the use of asynchronous I/O.
See -ua server option.
openxml supports equality predicates The openxml function allows you to use equality predicates in the XPath expression. This feature allows you to locate nodes within the XML document using attribute values.
See Database properties.
Connection IDs start at 1 and are incremented for each new connection to the database server When the database server is started, each connection to the server is assigned a connection ID, starting with 1, and the connection number is incremented with each new connection to the server. The connection IDs are logged in the -z server output and the LogFile connection parameter output. They are also used by the CONNECTION_PROPERTY, NEXT_CONNECTION, NEXT_DATABASE, and DROP CONNECTION functions, and by request logging.
Improved cache management on NetWare and UNIX When the cache size specified with -c is greater than the amount of available memory on UNIX or NetWare, the database server now calculates the maximum cache size based on available memory.
For more information about how the database server calculates the maximum cache size in these circumstances, see -c server option.
|Discuss this page in DocCommentXchange.
Send feedback about this page using email.
|Copyright © 2009, iAnywhere Solutions, Inc. - SQL Anywhere 11.0.1|