10.07.2015 Views

Programming Guide - Actian

Programming Guide - Actian

Programming Guide - Actian

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

How You Can Work with Text StringsHow You Can Create a String Storage TableGenerally, you store strings in the database that contains the other data forthe application. Someone with authority to grant user permissions must ownthis storage table, which must have exactly the following columns and datatypes:string_idData Type: i4 not nullSpecifies the ID of the string in the table. This value is a sequentialnumber, starting from 1, that was established when the string wasinserted into the database. In the DBHandle that refers to this string, thisID appears in textual form after the table name.row_sequenceData Type: i4 not nullSpecifies the sequence number for text in the string, beginning with 1text_totalData Type: i4 not nullSpecifies the total number of bytes in the full text stringtext_valueIf the database is not a Unicode-enabled database, then the data type forthis column must be:Data Type: varchar(1786) not nullIf the database is a Unicode-enabled database, then the data type for thiscolumn must be:Data Type: nvarchar(893) not nullCreate this table with a B-tree structure (compressed or not) with the uniquekey values on string_id and row_sequence. Be sure to grant the correctpermissions on the table.292 <strong>Programming</strong> <strong>Guide</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!