Re: ADO adCmdStoredProc PlPgSql-SP Parameters

From: Postgre(dot)News(dot)Firma(at)spamgourmet(dot)net
To: pgsql-general(at)postgresql(dot)org
Cc: "'Shachar Shemesh - psql(at)shemesh(dot)biz'" <+Postgre+Firma+239010aa29(dot)psql#shemesh(dot)biz(at)spamgourmet(dot)com>
Subject: Re: ADO adCmdStoredProc PlPgSql-SP Parameters
Date: 2005-02-11 09:30:11
Message-ID: 000001c5101c$495a23a0$ca64a8c0@muenchen.oneXtwo.ag
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

>>Von: Duffner
> Von: Shachar Shemesh
> Betreff: Re: [GENERAL] ADO adCmdStoredProc PlPgSql-SP Parameters

> >How do I call a StoredProcdure, written in PlPqSql
> >which returns a set of records (or tableWhatever)
> >and wants parameters,
> >from ADO while using "adCmdStoredProc" ?

> Which driver are you using? If it's the OLE DB provider, then
> there is a solution,
> provided that you modify your stored procedure a little.
> You can probably write a wrapper procedure,
> if that's not acceptable as it is.

I had been told not to use the OLE driver because it is not working
correctly.
Now I will give it a try anyway.
There is nothing to change, because we are still investigating postgre to
know which way we will use it.
And if :-)

[One day later]
I tried it and we will not use the OLE driver for a LONG time.

> If your function returns "refcursor", then OLE DB will
> interpret that to mean that the function has rowset returns, and will
emulate
> the standard calls surrounding returning multiple results.

When I tried to retrieve multiple cursors via ADO/ODBC I got a table
with the names of the cursors.
Is it possible to use these cursors somehow ?

Cu,
Andreas

In response to

Browse pgsql-general by date

  From Date Subject
Next Message John Sidney-Woollett 2005-02-11 09:47:32 Re: vacuum confusion
Previous Message Richard Huxton 2005-02-11 09:25:56 Re: vacuum confusion