欢迎光临
我们一直在努力

用ado连接Informix的资料

建站超值云服务器,限时71元/月

原文地址

http://examples.informix.com/white_papers/appeng/3rd_party/ado_iis/ado_iis_note_ibyx.html

———————————————————————–

using ado with iis to connect to an informix database

introduction

informix cli driver

microsoft internet information server

activex data objects

installing informix cli driver

windows nt 4.0

installing iis / ado

windows nt 4.0

specifications for informix odbc drivers

using informix cli driver with iis/ado

configuration

examples

detailed steps for windows nt samples

conclusion

useful links

history

1. introduction

iis and ado are part of microsoft抯 universal data access strategy. activex data objects (ado) enables users to write an application to access and manipulate data in a database server through an ole db provider. ados primary benefits are ease of use, high speed, low memory overhead, and compactness. ado supports key features for building client/server and web-based applications.

goals for this integration note were:

to understand the working of ado and iis.

to investigate the working informix cli driver with ado with iis.

to investigate the working informix cli driver with ado with visual basic.

informix cli driver

we used informix cli driver 2.8. this driver is contained in the informix client sdk 2.03.

microsoft internet information server

microsoft internet information server is a web server that enables users to publish information on a corporate intranet or on the internet. the iis supports http, ftp and gopher services. iis 4.0 is included in microsoft nt server 4.0 suite.

click here for more information on iis.

activex data objects

activex data objects (ado) is included with internet information server 4.0. ado is an odbc standard-compliant set of interfaces that expose the database functionality in databases through accessible objects. many shortcuts speed up common scripting operations. ado can be used with any language, such as javascript, vb script, and perl.

because ado works with ole-db providers, it can access a variety of data sources. data sources include both traditional relational database management systems and non-database sources such as file systems, directories, spreadsheets, and full-text indexes. ado can be easily optimized for different databases. because ado is used with active server. pages–the dynamic content and server-side scripting environment for iis–developers can write conditional scripts that execute different sql commands based upon the odbc driver being used.

applications can be customized for different customers without having to change the code.

click here for more information on ado.

2.0 installing informix cli driver

windows nt 4.0

informix client sdk 2.03 needs to be installed to use ado with iis to access informix data. the informix cli driver 2.8 comes with the development kit. download informix client sdk 2.03.

3.0 installing iis/ado

in order to install iis/ado, the following software is needed on your system:

odbc 3.0

nt server 4.0

internet explorer 4.0 or higher

visual basic 5.0 or higher

all these products can be obtained from microsoft corp. for details refer to the microsoft site.

activex data objects (ado) is included with internet information server 4.0. you may need to install ado 2.0.

the iis site provides additional information on administration and maintenance of iis and its components.

4. specifications for informix odbc drivers

informix cli driver

see http://www.informix.com/informix/techbriefs/cli/cli.htm for a techbrief on informix cli drivers.

note that the current version of informix cli driver 2.8 only supports odbc specifications through version 2.5.unlike merant drivers, informix cli drivers support blob/clob functionality.

merant data direct odbc driver for informix

click here for information on merant odbc drivers for informix.

5. using informix cli driver with iis/ado

typically, when the iis services a request for data on a web page, many data components are involved. all processing is done on the middle tier; the end users computer simply makes the request and receives the results. processing the request for data consists of these steps:

the active server pages (asp) makes the call to the ole-db data provider.

the ole-db data provider services the request and performs the query on the database; or, in the case of the ole-db data provider for odbc data sources, a call is made to odbc via informix cli driver.

the database server then processes the request for data and returns the data to the data provider.

the data provider returns the data to the requesting software. this could be either an asp or an isapi dll.

the data is then formulated in web-page format and presented to the user.

6. configuration

following is the minimum configuration recommended for using this product as well as the configuration used by the testing staff.

minimum configuration testing environment

hardware pentium processor

windows nt compatible pc

32 mb ram

100 mb disk space pentium processor 5/133

hp vectra xm pc

40 mb ram

2 gig disk space

software microsoft windows nt version 4.0,

service pack 3

microsoft odbc 3.0

internet explorer 4.0

visual basic 5.0 microsoft windows nt version 4.0,

service pack 3

microsoft odbc 3.0

internet explorer 4.0

visual basic 6.0

7. examples

the examples use the stores7 demonstration database. to view an example developed using vbscript click on the following link:.ado.html.

another example is provided in the article on using visual basic and ado. iis is not used in that example.

detailed steps for windows nt samples

the assumption before running the samples is that the user has installed all the required components by microsoft as well as by informix. you need to have a valid database connection to the informix server. the informix database server should have built the stores7 database. the database should have the customer table, with proper structure.

ado/iis/vbscript

follow these steps for running the ado/iis/vbscript:

edit the page ?ado.html in your html/asp editor.

change the variables ?dsn (data source name), uid (user id), pwd (password) and dbs (database) to match your requirements.

copy the file adovbs.inc to your current directory. if you have installed iis, this file will be in the directory: netdirectory>\iissamples\sdk\asp\database.

load the page ado.html in internet explorer. (the example may not work properly using netscape navigator.)

click on the button "ado demo".

the data will be retrieved and displayed on the web page.

ado/vb

follow these steps for running the ado/vbscript:

load the project ado.vbp in visual basic 5.0.

select project->references.

check the selection "microsoft activex data objects 2.0 library".

run the project.

fill in the dsn, uid, pwd and database fields with your requirements.

click on "connect".

after the program connects to database, click on "retrieve".

you can browse forward through the retrieved data, using "next record" button.

8. conclusion

ado provides access to the databases through ole-db and odbc.

ado is a standard class library which can be used on different platforms and with different application development frameworks such as visual basic, asp/vbscript/iis, visual c++, etc.

informix cli driver works with ado. the correct data was returned with proper format.

ado makes it easy to browse through a result set by providing standard methods.

9. useful links

informix

informix cli driver: http://www.informix.com/informix/techbriefs/cli/cli.htm

merant data direct odbc driver: http://www.merant.com/products/datadirect

microsoft

ado page: http://www.microsoft.com/data/ado/.

iis page: http://www.microsoft.com/iis/.

10. history

author: shekhar kale

contributors: jaya khera, masood ahmed

initial article completed: september 1998

last modified: february 1999

赞(0)
版权申明:本站文章部分自网络,如有侵权,请联系:west999com@outlook.com 特别注意:本站所有转载文章言论不代表本站观点! 本站所提供的图片等素材,版权归原作者所有,如需使用,请与原作者联系。未经允许不得转载:IDC资讯中心 » 用ado连接Informix的资料
分享到: 更多 (0)