execute stored procedure

B

Bob Phillips

Yes, using ADO.

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)
 
R

Rob van Gelder

Do you mean a database 'stored procedure'? Yes, with ADO (ActiveX Data
Objects)
 
O

onedaywhen

.... 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'
 
Top