DateTimeAllowed DBParm Parameter
\The Sandbox \PB History & Future \New In PB6 \Database Connectivity \DateTimeAllowed DBParm
UI for
DB Profiles
INFORMIX 7.x
DB Interface
Oracle 7.3
DB Interface
Oracle 8.0
DB Interface
INTERSOLV DB2
ODBC Driver
Sybase Open
Client 11.1
Sybase 10 & 11
Dist App Interface
Release DBParm
Sybase OC
11.1 Security
Sybase OC
11.1 Directory
Accessing MS
SQL Server 6.5
ODBC 3.0
Sybase
DirectConnect
CommitOn-
Disconnect
DateTimeAllowed
DBParm
DBGatewayUDT
DBParm
FormatArgsAsExp
DBParm
HostReqOwner
DBParm
LowerCaseIdent
DBParm
ModifySyntax
DBParm
PWDialog
DBParm
TableCriteria
DBParm
ThreadSafe
DBParm
TrimSpaces
DBParm
TRS DBParm
AutoCommit in
Net-Gateway
PBCatalogOwner
in Oracle
Increased
DBParm Strings
PRINT Stmts
in Stored Procs
Nondefault DB
Trace Log File
Automatically
Connect to DB

Description

PowerBuilder and InfoMaker provide a new DBParm parameter named DateTimeAllowed for use with any of the following database interfaces:

  • MSS Microsoft SQL Server 6.x
  • SYB SQL Server 4.x DB-Lib
  • SYC Sybase Systems 10 and 11 CT-Lib
  • SYD Sybase Systems 10 and 11 CT-Lib distributed application interface (UNIX only)
  • SYT Sybase SQL Server DB-Lib (Windows NT and Windows 95 only)

When you are using one of these interfaces to access the database, DateTimeAllowed controls whether DateTime columns in your table display in the Unique Key Columns list in the Specify Update Properties dialog box. You can then select one or more columns from this list to appear in the WHERE clause of a SQL UPDATE or DELETE statement that PowerBuilder or InfoMaker generates to update the database.

By default, DateTimeAllowed is set to 0 to prohibit DateTime columns from displaying in the Unique Key Columns list and, consequently, from appearing in the WHERE clause of an UPDATE or DELETE statement. When you set DateTimeAllowed to 1, any DateTime columns in your table display in the Unique Key Columns list and can therefore be selected to appear in the WHERE clause of an UPDATE or DELETE statement.

  • For more about using the Specify Update Properties dialog box, see the "Controlling updates" section in the PowerBuilder or InfoMaker User's Guide.

Purpose

Setting DateTimeAllowed to 1 enables you to specify DateTime columns as unique key columns in the WHERE clause of an UPDATE or DELETE statement when you are updating the database from a DataWindow object or form. Previously, DateTime columns did not display in the Unique Key Columns list and could not be selected to appear in the WHERE clause.

Usage

As with any other DBParm parameter, you can set DateTimeAllowed in the Database Profile Setup dialog box for your connection or in a PowerBuilder application script.

You must specify a value for DateTimeAllowed before connecting to the database in PowerBuilder or InfoMaker.

PBL Peeper PB Help PB History
& Future About Us Feedback Site Map

Google
 
Web www.techno-kitten.com
www.sybase.com