Re: ADO adCmdStoredProc PlPgSql-SP Parameters

From: Shachar Shemesh <psql(at)shemesh(dot)biz>
To: Postgre(dot)News(dot)Firma(at)spamgourmet(dot)net
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: ADO adCmdStoredProc PlPgSql-SP Parameters
Date: 2005-02-09 17:32:09
Message-ID: 420A4919.5000307@shemesh.biz
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Postgre(dot)News(dot)Firma(at)spamgourmet(dot)net wrote:

>Hi,
>
>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.

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.

Please feel free to let me know if this solves your problem. Please CC
me on replies.

Shachar

--
Shachar Shemesh
Lingnu Open Source Consulting ltd.
Have you backed up today's work? http://www.lingnu.com/backup.html

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Ed L. 2005-02-09 18:00:00 Understanding EXPLAIN ANALYZE output
Previous Message John DeSoi 2005-02-09 16:55:49 Re: parameters handling in postgresql functions