execute stored procedure

  • Thread starter Thread starter Mark Goldin
  • Start date Start date
Yes, using ADO.

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)
 
Do you mean a database 'stored procedure'? Yes, with ADO (ActiveX Data
Objects)
 
.... or MS Query

e.g. (SQL Server):

CREATE PROCEDURE MyStoredProc (@start_date DATETIME, @end_date DATETIME) AS
SELECT RefID, DateEffective, Earnings
FROM EarningsHistory
WHERE DateEffective BETWEEN @start_date AND @end_date

Then this in the SQL window:

EXEC MyStoredProc '01 JAN 2002', '01 JAN 2003'
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top