Comments
Richard Davies wrote: The UK has a good crop of technology pioneers in cloud computing - for example ElasticHosts, FlexiScale, Flexiant, OnApp - and also some strong government initiatives such as G-Cloud. We will have to see whether this kind of technical leadership converts into swift mass-market adoption or not.
Cloud Expo on Google News


2008 West
DIAMOND SPONSOR:
Data Direct
SOA, WOA and Cloud Computing: The New Frontier for Data Services
PLATINUM SPONSORS:
Red Hat
The Opening of Virtualization
GOLD SPONSORS:
Appsense
User Environment Management – The Third Layer of the Desktop
Cordys
Cloud Computing for Business Agility
EMC
CMIS: A Multi-Vendor Proposal for a Service-Based Content Management Interoperability Standard
Freedom OSS
Practical SOA” Max Yankelevich
Intel
Architecting an Enterprise Service Router (ESR) – A Cost-Effective Way to Scale SOA Across the Enterprise
Sensedia
Return on Assests: Bringing Visibility to your SOA Strategy
Symantec
Managing Hybrid Endpoint Environments
VMWare
Game-Changing Technology for Enterprise Clouds and Applications
Click For 2008 West
Event Webcasts

2008 West
PLATINUM SPONSORS:
Appcelerator
Get ‘Rich’ Quick: Rapid Prototyping for RIA with ZERO Server Code
Keynote Systems
Designing for and Managing Performance in the New Frontier of Rich Internet Applications
GOLD SPONSORS:
ICEsoft
How Can AJAX Improve Homeland Security?
Isomorphic
Beyond Widgets: What a RIA Platform Should Offer
Oracle
REAs: Rich Enterprise Applications
Click For 2008 Event Webcasts
SYS-CON.TV
Top Links You Must Click On


PowerBuilder & Informix
Connectivity options

In this article we'll discuss connectivity requirements, Informix-specific data type processing, and the use of Informix stored procedures within the PowerBuilder environment.

PowerBuilder offers developers four specific connectivity options for IBM Informix databases:

  • Third-party Open Database Connectivity (ODBC) drivers
  • Third-party Java Database Connectivity (JDBC) drivers
  • Third-party OLE-DB providers
  • The "native" driver available in the PowerBuilder Enterprise version

In this article we'll focus on the last option by discussing connectivity requirements, Informix-specific data type processing, and the use of Informix stored procedures within the PowerBuilder environment.

Connecting to Informix
Supported Versions
The PowerBuilder native driver for Informix connectivity (IN9) is linked with the IBM Informix ESQL C product to provide connectivity to the following IBM Informix databases

  • IBM Informix Dynamic Server (IDS)
  • IBM Informix Standard Engine (SE)
  • IBM Informix OnLine 5

PowerBuilder application developers and end users wishing to connect to an IBM Informix database server must install the IBM Informix Connect product containing the necessary files for runtime client use. IBM Informix Connect is also included as a component within the Informix Client SDK (Software Development Kit). The SDK offers additional development tools including JDBC and ODBC drivers, an OLE-DB provider, and libraries for including embedded SQL within C, C++, and Java programs.

As there is a wide range of features supported on the various IBM Informix products, not all of the topics in this article will apply to all database servers. This article is generally focused on the features provided in IBM Informix Dynamic Server, which IBM considers their offering for mission-critical applications.

Setnet32 Configuration
Included in IBM Informix Connect is a client utility called Setnet32 (see Figure 1). This program is used to specify default values for the connectivity parameters required to establish a connection with the Informix database from that client machine. Many of the parameters that can be entered within the Setnet32 interface are also, optionally, supplied via the PowerBuilder database profile or within script by assigning values to the properties of the PowerBuilder transaction object.

Setnet32 records the configuration information within the Windows registry on the client machine, and those values are used when the analogous connection parameters are not supplied via PowerBuilder. Within Setnet32, you can actually specify all of the default parameters, including the user name and password of the client account, such that the Connect Information in the PowerBuilder Database Profile Setup (see Figure 2) can be completely empty and your connection will still succeed!

PowerBuilder Database Profile Setup for IBM Informix
By comparing the values supplied in the fields shown in Figure 1 with those in Figures 2 and 3, you can easily correlate many of the parameters supplied via Setnet32 with the PowerBuilder profile counterparts. In addition to these options, you can also use Setnet32, and specifically its Environment tab, to set a number of optional environment variables. Among those, the two most critical are:

  • INFORMIXSERVER: the name of the default server (dyn2000, above)
  • INFORMIXDIR: The path to the Informix Connect software

For each item entered via the PowerBuilder Database Profile painter to support a connection to an IBM Informix database server, Table 1 provides:

  • A description of that item
  • The corresponding property setting in the PowerBuilder transaction object (using SQLCA as the representative transaction object)
  • The analogous setting within the Setnet32 interface (which is also used as the default value if not explicitly provided by your PowerBuilder database profile or script)
  • The Windows registry setting where Setnet32 stores and retrieves this information (HKLM and HKCU indicate the \\HKEY_LOCAL_MACHINE and the \\HKEY_CURRENT_USER registry hives, respectively)

The specifications of protocol and service are interdependent and have a specific set of ranges and values. Consult the Administrator's Guide accompanying your IBM Informix server for details.

Data Types
Database vendors often provide data types that have the same name but have different semantics from those available in PowerBuilder. Table 2 presents the IBM Informix data types and the corresponding PowerBuilder data types. Not all of the IBM Informix data types are available on all IBM Informix database products. Also, please note the PowerBuilder equivalents for each of the native database data types may or may not support the same range of values or precision.

DATETIME and TIME Data Types
IBM Informix's DATETIME type makes use of a field qualifier segment to specify the precision of the date and time values that can be stored within that field. By default, the qualifier used when creating columns using PowerBuilder's Database painter is:

DATETIME YEAR TO FRACTION(5)

which can store any date from 1/1/0001 00:00:00000 to 12/31/9999 23:59:59.99999. PowerBuilder's year range limits this span to the years 1000 to 3000; however, since PowerBuilder can support microseconds, the precision of the time is retained.

About Jim O'Neil
Jim O'Neil is a Microsoft Developer Evangelist for the Northeast U.S. where he concentrates on the developer communities using Visual Studio .NET and the various .NET technologies. Prior to joining Microsoft, he was a Principal Systems Consultant and Principal Technical Support Engineer for Sybase, Inc., where he specialized in the PowerBuilder family of tools, EAServer, and Appeon for PowerBuilder.

In order to post a comment you need to be registered and logged in.

Register | Sign-in

Reader Feedback: Page 1 of 1

Enterprise Open Source Magazine Latest Stories . . .
With Cloud Expo 2012 New York (10th Cloud Expo) just four months away, what better time to start introducing you in greater detail to the distinguished individuals in our incredible Speaker Faculty for the technical and strategy sessions at the conference... We have technical and st...
AMD said late Tuesday that its chief sales officer Emilio Ghilardi had left the company and that CEO and president Rory Read is going to do his job while a replacement is sought. AMD didn’t say why Ghilardi left but it’s assumed Read wants his own people. Read is relatively new to th...
During the lifespan of M3 (Monitis Monitor Manager) there has always been something lacking – timers. M3 execution procedure was outlined in this previous article. The execution mentioned in the latter was a one-time-execution, whereas server monitoring requires periodic invocati...
Red Hat is putting its bought-in Gluster scale-out NAS storage technology, acquired in October, on the Amazon cloud. It’s styled Red Hat Virtual Storage Appliance for Amazon Web Services and other clouds are supposed to follow in short order.
A new episode of the screencast series is now available at the OpenNebula YouTube Channel. This screencast demonstrates the new easily-customizable self-service portal for cloud consumers. Its aim is to offer a simplified access to shared infrastructure for non-IT end users. The scree...
C12G Labs has just announced an update release of OpenNebulaPro, the enterprise edition of the OpenNebula Toolkit. OpenNebula 3.2, released two weeks ago, brings important benefits to cloud providers with a new easily-customizable self-service portal for cloud consumers, and builders w...
Subscribe to the World's Most Powerful Newsletters
Subscribe to Our Rss Feeds & Get Your SYS-CON News Live!
Click to Add our RSS Feeds to the Service of Your Choice:
Google Reader or Homepage Add to My Yahoo! Subscribe with Bloglines Subscribe in NewsGator Online
myFeedster Add to My AOL Subscribe in Rojo Add 'Hugg' to Newsburst from CNET News.com Kinja Digest View Additional SYS-CON Feeds
Publish Your Article! Please send it to editorial(at)sys-con.com!

Advertise on this site! Contact advertising(at)sys-con.com! 201 802-3021


SYS-CON Featured Whitepapers
ADS BY GOOGLE