How PocketBuilder accesses the data source  The PKODB20 initialization file

Chapter 14: Using database interfaces

Support for Transact-SQL special timestamp columns

When you work with an ASA table in the Database or DataWindow painter, the default behavior is to treat any column named timestamp as an ASA Transact-SQL special timestamp column.

Creating special timestamp columns

You can create a Transact-SQL special timestamp column in an ASA table.

StepsTo create a Transact-SQL special timestamp column in an ASA table in PocketBuilder:

  1. Give the name timestamp to any column having a timestamp datatype that you want treated as a Transact-SQL special timestamp column. Do this in one of the following ways:

  2. Specify timestamp as the default value for the column. Do this in one of the following ways:

CREATE TABLE example

The following CREATE TABLE statement defines an ASA table named timesheet containing three columns: employee_ID (integer datatype), hours (decimal datatype), and timestamp (timestamp datatype and timestamp default value):

CREATE TABLE timesheet (
   employee_ID INTEGER,
   hours DECIMAL,
   timestamp TIMESTAMP default timestamp )

Not using special timestamp columns

If you want to change the default behavior, you can specify that PocketBuilder not treat ASA columns named timestamp as Transact-SQL special timestamp columns.

StepsTo specify that PocketBuilder not treat columns named timestamp as a Transact-SQL special timestamp column:

  1. Edit the Sybase ASA section of the PKODB20 initialization file to change the value of SQLSrvrTSName from 'Yes' to 'No'.

    After making changes in the initialization file, you must reconnect to the database to have them take effect. See “Adding functions to the PKODB20 initialization file”.





Copyright © 2004. Sybase Inc. All rights reserved. The PKODB20 initialization file

View this book as PDF