14.01.2013 Views

IBM Informix Developer's Handbook - IBM Redbooks

IBM Informix Developer's Handbook - IBM Redbooks

IBM Informix Developer's Handbook - IBM Redbooks

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.

}<br />

232 <strong>IBM</strong> <strong>Informix</strong> Developer’s <strong>Handbook</strong><br />

wprintf( L"\n%s\t%d\t%ld", (pDBColumnInfo+i)->pwszName,<br />

(pDBColumnInfo+i)->wType, (pDBColumnInfo+i)->ulColumnSize);<br />

// Free the Column Information Interface<br />

CHECK( (hr = pColumnsInfo->Release()))<br />

// Cleanup<br />

pCommandText->Release();<br />

pCommandText = NULL;<br />

pSession->Release();<br />

pSession = NULL;<br />

pIDBInitialize -> Uninitialize();<br />

pIDBInitialize -> Release();<br />

pIDBInitialize = NULL;<br />

}<br />

CoUninitialize();<br />

return(0);<br />

Example 7-6 shows the name, type, and length columns of the customer table.<br />

Example 7-6 Output of the rowset.cpp sample<br />

C:\work>cl /EHsc /nologo rowset.cpp<br />

rowset.cpp<br />

C:\work>rowset<br />

Table : customer<br />

Columns :7<br />

Name Type Length<br />

customer_num 3 4<br />

customer_type 129 1<br />

customer_name 129 32767<br />

customer_loc 3 4<br />

contact_dates 129 32767<br />

cust_discount 131 19<br />

credit_status 129 1<br />

C:\work><br />

Large objects<br />

Large objects (simple and smart) do not require any special handling when using<br />

<strong>Informix</strong> OLE DB Provider.<br />

Smart large objects (BLOB and TEXT) support the ADO GetChunk() and<br />

AppendChunk() methods.

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

Saved successfully!

Ooh no, something went wrong!