+ Reply to Thread
Results 1 to 2 of 2

Using SQL Server Stored Procedure From Excel

  1. #1
    Registered User
    Join Date
    02-14-2012
    Location
    New York
    MS-Off Ver
    Excel 2010
    Posts
    1

    Using SQL Server Stored Procedure From Excel

    I am a SQL Server DBA trying to use Excel to execute both read and write stored procedures from Excel.
    I have 2 questions regarding this.

    (1) I was able to fumble through some documentation online and put together a spreadsheet that can pull in data from SQL Server using a stored procedure. This stored procedure has a default parameter that defaults to NULL. I hope the reader knows what that means. Anyway, The spreadsheet is setup to read in the parameter value from a cell. It works fine when I provide a specific value for the parameter, but not sure what I have to type in to the cell for it be interpreted as NULL. I tried leaving the cell blank, but that doesn't seem to work.

    (2) How do you execute a stored procedure that writes data back to SQL Server. Can someone direct me to a tutorial?

  2. #2
    Registered User
    Join Date
    09-10-2013
    Location
    Princeton, NJ
    MS-Off Ver
    Excel 2010
    Posts
    1

    Re: Using SQL Server Stored Procedure From Excel

    Hi,

    How exactly did you pass the cell value to the "EXECUTE" statement for the SQL stored procedure?

    Thanks,
    Al
    Last edited by arlu1201; 09-11-2013 at 01:48 AM. Reason: Removed email to avoid spam.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1