If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > PC based Database Applications > Microsoft Excel > insert values from excel to sql server

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-21-10, 17:46
mikezx10 mikezx10 is offline
Registered User
 
Join Date: Oct 2003
Posts: 226
insert values from excel to sql server

I would like to set param values for a stored procedure and then execute the insert sp from excel. Is this possible?
Reply With Quote
  #2 (permalink)  
Old 05-01-10, 19:30
samh samh is offline
Registered User
 
Join Date: Jul 2009
Posts: 2
Hi Mike,

It's possible using VBA code. You can use an ADODB.Command object to execute the stored procedure.

And it's possible without writing VBA by using MS Query. I think this has previously been covered in the forums at : Executing Stored Procedures Within MS Query

Also add-ins such as QueryCell (Which is my add-in) and the SQLDrill add-in support executing stored procedures.

There is an example here :

http://www.querycell.com/call-sql-se...rom-excel.html

Cheers
Sam Howley
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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