Skip to content

DFBTR_Set_Owner

Purpose

Set the owner name of a table.

Syntax

DFBTR_SET_OWNER FileNumber TO OwnerName [READONLY] [ENCRYPT] [CALLBACK ObjectId]

Where:

  • FileNumber: The number of the table to change.

  • OwnerName: The new owner name of the table. May be a constant or a string variable. An owner name has a maximum length of 8 characters and is case sensitive.

  • READONLY: When this option is used, the Pervasive.SQL engine will allow opening the table without an owner name for read-only access. This is only useful when an owner name has been specified.

  • ENCRYPT: When this option is used, the Pervasive.SQL engine will encrypt the data in the data table. It may take a while for this operation to complete depending on the amount of data in the table. This is only useful when an owner name has been specified.

  • CALLBACK ObjectId: This option may be used when the program wants to be informed about the progress of the command’s execution. It is advised when encrypting an existing table with a lot of data.

What it does

This command can be used on an opened table to change its owner name.

Note

This command may not be executed within a transaction!