![]() |
DataBlade Developers Kit Tutorial |
Exercise 7: Using Smart Large Objects, Continued
See " Compiling and Linking DataBlade Module Code" for detailed instructions on using the Visual C++ makefile (Poem.mak for this exercise) to compile the source code into the dynamic link library file (Poem.bld). For more information about compiling on UNIX, see the DataBlade Developers Kit User's Guide.
See " Installing a DataBlade Module" for detailed installation instructions.
See " Starting Informix Dynamic Server on Windows NT" for detailed instructions for starting Informix Dynamic Server on Windows NT. For instructions on starting Informix Dynamic Server on UNIX, see the Administrator's Guide for your database server.
If the database in which you plan to test the Poem DataBlade module does not yet exist, create it using the following SQL statement: create database smartlotest with buffered log;
See " Registering a DataBlade Module" for detailed instructions on registering using the BladeManager graphical user interface. If registration fails, see " Registration Failure with an sbspace Test" for instructions. For information on registering using BladeManager from the command line, see the DataBlade Module Installation and Registration Guide.
After you install and register the Poem DataBlade module, the Informix database server accepts the new data type and routines and runs them as if they were built-in. When you select smart large objects from the database, the database server copies them to the current directory for your SQL query application (SQL Editor or DB-Access). The current directory depends on how the application is started:
To test the Poem DataBlade module2. Edit the SQL INSERT statements to reflect the directory to which you copied the XML files. 3. Insert three smart large objects into the database. 4. Retrieve the smart large objects; the database server copies them to the same directory as the original files but gives them different names. 5. Look at the retrieved XML files (named Annabel Lee.xml, Eldorado.xml, and For Annie.xml) using Notepad.
Copyright © 1998, Informix Software, Inc. All rights reserved. |