472,145 Members | 1,799 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,145 software developers and data experts.

Stored procedures from MS Query

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

Nov 12 '05 #1
2 3304
On Tuesday 28 October 2003 16:06, Tomas Larsson wrote:
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?


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 ma*******@postgresql.org

Nov 12 '05 #2
Thanks Shridhar!

Works like a charm!

/tomas, Patrik and Siv.

--- Shridhar Daithankar
<sh*****************@myrealbox.com> wrote:
On Tuesday 28 October 2003 16:06, Tomas Larsson
wrote:
Hi!

We're trying to call a set-returning stored procedure
from Excel (MS Query).

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

HTH

Shridhar

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

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

Nov 12 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Jarrod Morrison | last post: by
7 posts views Thread by Douglas Buchanan | last post: by
5 posts views Thread by Tim Marshall | last post: by
7 posts views Thread by JIM.H. | last post: by
45 posts views Thread by John | last post: by
6 posts views Thread by Arjen | last post: by
reply views Thread by Saiars | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.