13.01.2013 Views

OpenEdge Data Management: DataServer for Microsoft SQL Server

OpenEdge Data Management: DataServer for Microsoft SQL Server

OpenEdge Data Management: DataServer for Microsoft SQL Server

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Initial Programming Considerations<br />

2–16<br />

Support <strong>for</strong> 64-bit sequences<br />

The MS <strong>SQL</strong> <strong>Server</strong> <strong>Data</strong><strong>Server</strong> supports the following changes <strong>for</strong> 64-bit sequences:<br />

• An existing database sequence will remain defined as a 32-bit INTEGER and migrate as<br />

32-bit, unless you explicitly choose to define a sequence as 64-bit INT64.<br />

• The MS <strong>SQL</strong> <strong>Server</strong> <strong>Data</strong><strong>Server</strong> can invoke a sequence function to process INT64 values<br />

through a standard implementation. That is, use GET, NEXT, and SET sequence functions to<br />

get or set an INT64 value.<br />

• Starting with <strong>OpenEdge</strong> Release 10.1B, an <strong>OpenEdge</strong> database, by default, defines a<br />

Sequence field in the schema as an INT64 data type. There<strong>for</strong>e, sequences migrated from<br />

a new <strong>OpenEdge</strong> database will automatically expand to support INT64 data types whereas<br />

previously they returned INTEGER values. You can override the INT64 return value using<br />

the INTEGER function. However, note that there is a potential <strong>for</strong> an overflow condition to<br />

occur if the target functionality expects an INTEGER value.<br />

• When the MS <strong>SQL</strong> <strong>Server</strong> is the target database, and the sequence’s upper limit is defined<br />

as the Unknown value (?) in the source database, the migration utility will specify the<br />

sequence’s upper limit value as 922337203685775807. However, if support <strong>for</strong> large<br />

sequences is not enabled <strong>for</strong> an <strong>OpenEdge</strong> database, the sequence’s upper limit value is<br />

specified as 2147483647.<br />

• An overflow condition can occur and subsequently an error message can appear on a client<br />

machine when a sequence generator is defined as a 64-bit value, but the value loaded into<br />

a client is <strong>OpenEdge</strong> Release 10.1A or earlier.

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

Saved successfully!

Ooh no, something went wrong!