Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default execute stored procedure

Can I exceute a stored procedure from Excel?


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default 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?




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,236
Default 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?




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 459
Default 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?

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Data return from SQL Stored procedure... Jonathon Shull Excel Discussion (Misc queries) 0 July 29th 08 04:25 PM
execute stored procedure from excel maxzsim Excel Worksheet Functions 3 May 11th 05 04:58 PM
Execute procedure on startup Richard[_20_] Excel Programming 4 March 3rd 04 11:36 AM
Run a stored procedure in Excel 2K ArthurB Excel Programming 0 February 26th 04 04:46 PM
Execute stored procedure using DAO sapta wijaya Excel Programming 0 September 29th 03 04:24 AM


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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"