Chapter 9. Deployingand Synchronizing Databases
Fora full description of Adaptive Server Enterprise/Adaptive Server
Anywherecompatibility, see the part

Transact-SQLCompatibility

,in the

AdaptiveServer Anywhere User’s Guide

.
Featuresnot supported in
ssxtract
includethe following:
Groupedprocedures AdaptiveServer Anywhere does not support
proceduregroups, and they are not extracted by
ssxtract
.
Namedconstraints and defaults AdaptiveServer Anywhere does not
supportnamed constraints and named defaults. Anysuch objects are
extracteddirectly as constraints and defaults that apply to a single object,
andthe name is lost.
Roles
ssxtract
extractsroles using the Adaptive Server Anywhere
conceptof groups. Itcreates a group with the named role, and assigns
usersto it.
Passwords Ifthe user for whom a database is being extracted does not
havean entry in SYSLOGINS, no password is extracted. If the user does
havea login ID, a dummy password is extracted.
NCHAR,NVARCHAR Thesedata types are extracted as CHAR and
VARCHAR,with NULLS allowed.
timestampcolumns Although AdaptiveServer Anywhere does
providea timestamp column, it is a different data type from that of
AdaptiveServer Enterprise. Timestampcolumns are not extracted.
Customizing the system tables
Theobjects that are to be loaded into an Adaptive Server Anywhere database
aredescribed in the system catalog. Theextraction utility for Adaptive
ServerEnterprise first creates a set of Adaptive Server Anywhere system
tablesin TEMPDB, and fills them with data from the Adaptive Server
Enterprisecatalog. Itthen unloads this set of tables to provide the reload
scriptthat in turnbuilds an Adaptive Server Anywhere database.
Theremay be cases where you wish to change the content of the Adaptive
ServerAnywhere system tables held in TEMPDB. SQL Remote provides a
placefor you to do that.
Thestored procedure that creates and fills the Adaptive Server Anywhere
systemobjects in TEMPDB is called sp_populate_sql_anywhere. Asits
finaloperation, this procedure calls a procedure called
sp_user_extraction_hook. This procedure, by default, does nothing. If you
wishto customize the extraction procedure, you can do so by writing a
suitablesp_user_extraction_hook procedure.
197