+ Reply to Thread
Results 1 to 2 of 2

Calling SQL Stored Proc Using ADO (Run Time Error 3704)

  1. #1
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,873

    Calling SQL Stored Proc Using ADO (Run Time Error 3704)

    Hi,

    I am calling 2 Identical Stored Procs Using ADO.

    Both the Stored Procs are absolutely identical with the same Parameters.

    One is running just fine, but the other returns this error message.

    Capture.GIF

    The Code returns error on this line "Data.Range("I2").CopyFromRecordset RecordSet"

    Code -

    Please Login or Register  to view this content.
    Any Ideas?
    Last edited by NeedForExcel; 07-03-2015 at 01:41 AM.
    Cheers!
    Deep Dave

  2. #2
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,873

    Re: Calling SQL Stored Proc Using ADO (Run Time Error 3704)

    Problem Solved

    Instead of

    StoredProcName = "AvgTime dealbooking"

    I Used

    StoredProcName = "[AvgTime dealbooking]"

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Execute Stored Proc Using ADODB
    By NeedForExcel in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-20-2015, 06:42 AM
  2. Error with recordset from SQL query. Run-time error '3704'
    By TheCyrusVirus in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-14-2010, 03:44 AM
  3. [SOLVED] SQL Stored proc - passing parameters
    By Harish Mohanbabu in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-20-2006, 01:00 PM
  4. Calling stored proc with parameters ..
    By Harish Mohanbab in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-19-2005, 11:05 AM
  5. execte stored proc
    By maxzsim in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-10-2005, 01:06 PM

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