Connecting Tech Pros Worldwide Help | Site Map

Stored procedures from MS Query

Tomas Larsson
Guest
 
Posts: n/a
#1: Nov 12 '05
Hi!

We're trying to call a set-returning stored procedure
from Excel (MS Query). To do this we type:

select * from getStudents()

(where getStudents() is the stored procedure).
The problem is that MS Query interprets this as if
getStudents was a table, and complains that there is
no table called getStudents(). How do we get around
this?

We would be very grateful for any help!

/tomas, Patrik and Siv.


__________________________________
Do you Yahoo!?
Exclusive Video Premiere - Britney Spears
http://launch.yahoo.com/promos/britneyspears/

---------------------------(end of broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster

Shridhar Daithankar
Guest
 
Posts: n/a
#2: Nov 12 '05

re: Stored procedures from MS Query


On Tuesday 28 October 2003 16:06, Tomas Larsson wrote:[color=blue]
> Hi!
>
> We're trying to call a set-returning stored procedure
> from Excel (MS Query). To do this we type:
>
> select * from getStudents()
>
> (where getStudents() is the stored procedure).
> The problem is that MS Query interprets this as if
> getStudents was a table, and complains that there is
> no table called getStudents(). How do we get around
> this?[/color]

Create a dummy table and a rule that calls this function instead of actually
selecting the from the table.

HTH

Shridhar


---------------------------(end of broadcast)---------------------------
TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org

Tomas Larsson
Guest
 
Posts: n/a
#3: Nov 12 '05

re: Stored procedures from MS Query


Thanks Shridhar!

Works like a charm!

/tomas, Patrik and Siv.

--- Shridhar Daithankar
<shridhar_daithankar@myrealbox.com> wrote:[color=blue]
> On Tuesday 28 October 2003 16:06, Tomas Larsson
> wrote:[color=green]
> > Hi!
> >
> > We're trying to call a set-returning stored[/color]
> procedure[color=green]
> > from Excel (MS Query).[/color][/color]
[color=blue]
> Create a dummy table and a rule that calls this
> function instead of actually
> selecting the from the table.
>
> HTH
>
> Shridhar[/color]


__________________________________
Do you Yahoo!?
Exclusive Video Premiere - Britney Spears
http://launch.yahoo.com/promos/britneyspears/

---------------------------(end of broadcast)---------------------------
TIP 8: explain analyze is your friend

Closed Thread