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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Stored Procedure to run in excel

Status
Not open for further replies.

Gill1978

Programmer
Jun 12, 2001
277
GB
Hi All,

I have a stored procedure that I need to run in excel to create a chart, which will be saved as an object in sql server ... does anyone know how I go about this?

Really have no idea ... please help!

Thanks

Julie
 
t-sql is only really used against sql server itself, and not external applications.

your best bet would be to use a vbscript to create and load the object outside of t-sql, and only use t-sql to run this script with xp_cmdshell (although this does have security implications...)

--------------------
Procrastinate Now!
 
You could try running it directly from Excel. Go to data, Get External data, create new query. Set up your connection and run it.

I've never used that to create a chart though.
 
Hi,

What I'm trying to do is create charts in an Access Report.
My thoughts on this was to create embedded excel charts in an Access report ... the excel chart would use a stored procedure that is located in the sql server back end. What I'm stuck on is how to actually link the stored procedure to the excel spreadsheet ...

Thanks

Julie
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top