Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How To: Call stored proc from a formula

Status
Not open for further replies.

Waz816

Programmer
Oct 4, 2001
10
US
Cr 9.0
SQLServer 2K

Is it possible to call a stored procedure from a formula?

My stored proc has 3 parameters. I can live with those parameters being hard coded if I can create a formula for each parameter combination. It returns a single count value depending on those parameters. I have 4 other procs that return similar data, but for different processes.

Any help would be appreciated. Thanks in advance.
 
I don't think this is possible. You can however incorporate the stored procedure into your SQL Command and the results of the proc become a part of your dataset.
 
You might handle this by placing the SP as the data source for a subreport and passing the parms to the sub, though I'm not sure, I've never tried it.

If you're using an external programming language you can do this (such as VB).

-k
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top