Unix Technical Forum

Asp connect to Informix

This is a discussion on Asp connect to Informix within the Informix forums, part of the Database Server Software category; --> Hello there, I'm trying to connect ASP pages (working under IIS6) to informix db (working in Suse Linux Environment), ...


Go Back   Unix Technical Forum > Database Server Software > Informix

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-20-2008, 12:07 PM
Marco Garutti
 
Posts: n/a
Default Asp connect to Informix

Hello there,
I'm trying to connect ASP pages (working under IIS6) to informix db (working
in Suse Linux Environment),
using this string:
<%
------------------------
Connection.Open = "driver={Informix-CLI 3.82 (32
Bit)};Server=hp570_1;Database=demo;Uid=usrdemo;Pwd =demo00;"
------------------------
and then
Sql = "SELECT sdpri0, sdpri1, tec_sdpri0, tec_sdpri1 FROM sdpri"
Set Example = Connection.Execute(SQL)
arrView = Example.GetRows
%>

but the Connection.Open string seems not to work
Can anyony help me to find out the solution ?
Any help will be grateful.
Marco Garutti


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-20-2008, 12:07 PM
Marco Garutti
 
Posts: n/a
Default Re: Asp connect to Informix

What to do is not to explicit driver, server, database and so on.
Just check:
1) ODBC connection must be "System DSN".
2) Make sure the informix setnet32 entries are correct.
Then, the right sintax is:
----------------
Connection.Open = "DSN=sysdsn;"
----------------
That's the solution, obtained with Help from <Sheshnarayan Agrawal>
that I thanks a lot.

Marco Garutti

"Marco Garutti" <marco.garutti@tecnoform.com> ha scritto nel messaggio
news:jE4Sg.85$cP2.236@news.it.colt.net...
> Hello there,
> I'm trying to connect ASP pages (working under IIS6) to informix db
> (working in Suse Linux Environment),
> using this string:
> <%
> ------------------------
> Connection.Open = "driver={Informix-CLI 3.82 (32
> Bit)};Server=hp570_1;Database=demo;Uid=usrdemo;Pwd =demo00;"
> ------------------------
> and then
> Sql = "SELECT sdpri0, sdpri1, tec_sdpri0, tec_sdpri1 FROM sdpri"
> Set Example = Connection.Execute(SQL)
> arrView = Example.GetRows
> %>
>
> but the Connection.Open string seems not to work
> Can anyony help me to find out the solution ?
> Any help will be grateful.
> Marco Garutti
>
>
>



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 07:16 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com