TimeStamp

Description

Specifies whether DataWindow Designer should map DateTime and Time datatypes to the Oracle TimeStamp datatype.

Applies to

Syntax

TimeStamp=value

Parameter

Description

value

Specifies whether DataWindow Designer should map DateTime and Time datatypes to the Oracle TimeStamp datatype. Values are:

  • 0 Map DateTime and Time datatypes to the Oracle Date datatype.

  • 1 (Default) Map DateTime and Time datatypes to the Oracle TimeStamp datatype.

Default

TimeStamp=1

Usage

Oracle9i and later databases and the O90 and O10 interfaces support the Oracle timestamp datatype. This datatype includes the date and the time including milliseconds. The existing Oracle Date datatype does not include millisecond information. In a DataWindow object, both the Oracle Timestamp and Date datatypes are mapped to the DataWindow Designer DateTime datatype, which supports millisecond information.

If you use the O90 or O10 interface with an Oracle9i or higher server, DateTime and Time datatypes are mapped to the Oracle TimeStamp datatype by default. If you want DateTime and Time to be mapped to the Oracle Date datatype, set the TimeStamp database parameter to 0.

The TimeStamp database parameter does not apply to the O84 database interface. When you use the O84 interface, the DateTime and Time datatypes are always mapped to the Oracle Date datatype.

If you are using the O90or O10 interface with a database that uses only the TimeStamp datatype, DataWindow Designer handles DataWindow updates correctly. If you are using the O90 or O10 interface with a database that uses only the Oracle Date datatype, set the DbParameter TimeStamp to 0 to truncate millisecond information.

Examples

Example 1

To set the TimeStamp value to treat DateTime and Time DataWindow datatypes as Oracle Date datatypes: