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 > reading sql stored procs with parameters

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-20-08, 12:53
jhowell39 jhowell39 is offline
Registered User
 
Join Date: Aug 2008
Posts: 1
reading sql stored procs with parameters

Hi--

I've been searching the web and I am looking for a method of using Excel 2003 to launch a parameterized stored procedure in sql server 2000/2005 and then fill the spreadsheet begoinning on row 8. This should be possible, but I see a lot of stuff that isn't making sense. I have a medium facility with VBA.

Thanks in advance--

Jim
Reply With Quote
  #2 (permalink)  
Old 09-07-08, 17:41
pierrevbaexcel pierrevbaexcel is offline
Registered User
 
Join Date: Dec 2003
Location: Ottawa, Canada
Posts: 72
HEre is an example of a stored proc that requires 3 values and to which I am submitting 3 VBA variables that are fed by values in cells

.CommandText = Array("exec property_PricingSummary_SP1 '" & varLocation & "','" & varBegDate & "','" & varEndDate & "'")
__________________
A piece of data is like a brick
If you don't build anything with it
It is just a brick
www.excel-examples.com
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