Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

using a stored procedure

edited October 2004 in General
I want to use a stored procedure to populate a report. Not sure if this is
the right place to ask. I am using D5 with SQLServer 2000.

I am unclear as to how to get a dataset from a stored proc and how to hook
that to the report.

Thanks for any help.

Matthew.

Comments

  • edited November 2004
    Hi Matthew,

    Are you using DADE? DADE dataviews don't natively support stored procs.
    You would need to create your own custom dataview template to handle them,
    or enter it in the SQL text tab of the Query Designer. You can write any
    SQL that you want into a DADE dataview (SQL tab). RB validates it by
    submitting it to the server. However, the query tools become disabled once
    you save edited SQL text.

    If you are using components on a form, you should be able to use a
    TStoredProc component to connect up:

    StoredProc -> Datasource -> Datapipeline -> Report

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited November 2004
    Nico,

    Thanks, it works fine.

    Matthew

This discussion has been closed.