Re: psqlODBC connection

From: <Mamatha_Kagathi_Chan(at)DELL(dot)com>
To: <rod(at)iol(dot)ie>
Cc: <pgsql-general(at)postgresql(dot)org>
Subject: Re: psqlODBC connection
Date: 2011-10-20 04:23:20
Message-ID: 89A978D5BD307B41B174E9250A8D343905A10F@BLRX10HMBAN02.AMER.DELL.COM
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi Ray,

Thanks for the help. Since I am using classic ASP this is exactly what I am looking for. But there is a problem here. When I go the "Create New Data Source" window as mentioned in step ii, Ifind only sql server and Oracle drivers. I do not see PostgreSQL ODBC driver. But I am sure PsqlODBC is installed as it appears in the installed program list. Is there anything else I am missing, because of which the driver does not appear in the source?? Please let me know.

Thanks,
Mamatha

-----Original Message-----
From: Raymond O'Donnell [mailto:rod(at)iol(dot)ie]
Sent: Wednesday, October 19, 2011 10:38 PM
To: Chan, Mamatha Kagathi
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: [GENERAL] psqlODBC connection

On 19/10/2011 07:26, Mamatha_Kagathi_Chan(at)DELL(dot)com wrote:
> Hi,
>
>
>
> I have installed psqlODBC and I can see the dll files in the bin
> folder. But what shall I do next to connect My ASP page? Please help.

I moved away from ASP a long time ago, so memory is rusty, but here goes:

(i) Go to the ODBC data sources manager (under Administrative tools on my Windows 7 laptop)

(ii) Create a new data source, using the PostgreSQL ODBC driver.

(iii) In your ASP page, do something like:

dim conn
set conn = Server.CreateObject("ADODB.Connection")
conn.Open "DSN=your_data_source_name"

This is using classic ASP, mind you, not ASP.NET - the latter may be different.

Ray.

--
Raymond O'Donnell :: Galway :: Ireland
rod(at)iol(dot)ie

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message senthilnathan 2011-10-20 04:31:37 Re: Recovery from Archive files
Previous Message Craig Ringer 2011-10-20 03:39:01 Re: Are file system level differential/incremental backups possible?