ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   execute stored procedure (https://www.excelbanter.com/excel-programming/294404-execute-stored-procedure.html)

Mark Goldin

execute stored procedure
 
Can I exceute a stored procedure from Excel?



Bob Phillips[_6_]

execute stored procedure
 
Yes, using ADO.

--

HTH

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

"Mark Goldin" wrote in message
...
Can I exceute a stored procedure from Excel?





Rob van Gelder[_4_]

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


--
Rob van Gelder - http://www.vangelder.co.nz/excel


"Mark Goldin" wrote in message
...
Can I exceute a stored procedure from Excel?





onedaywhen

execute stored procedure
 
.... 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'

--

"Mark Goldin" wrote in message ...
Can I exceute a stored procedure from Excel?



All times are GMT +1. The time now is 09:02 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com