Stored Procedure Parameter not seen by ADODB.Command object

mdlueck

Sr. Application Developer
Local time
Today, 03:33
Joined
Jun 23, 2011
Messages
2,649
I have a very odd bug today... I am working on cloning a bunch of SP's to query data slicing from a different hierarchical level than current production SP's. I cloned my SP, made the needed adjustments, and clearly see the required parameter via SSMS.

Bang in VBA touching the SP! It acts like the SP has no parameter!

View of the SP tree in SSMS:
attachment.php


View of what VBA recognizes the SP as:
attachment.php


Suggestions why the umpteenth Stored Procedure call from Access / VBA is not working correctly?

And yes, I already tried my DB cleanup to see if that might shake Access / VBA back to sense, nadda.

NT Command Script and Documented Steps to Decompile / Compact / Compile an Access DB
http://www.access-programmers.co.uk/forums/showthread.php?t=219948
 

Attachments

  • ErrorSPNoShowParameter_SSMS.jpg
    ErrorSPNoShowParameter_SSMS.jpg
    42.5 KB · Views: 316
  • ErrorSPNoShowParameter_VBA.jpg
    ErrorSPNoShowParameter_VBA.jpg
    96.6 KB · Views: 384
Never mind...

I had added the _Product suffix to the SP name incorrectly in VBA. It was correct in SQL Server.

I adjusted it / runs as expected.
 

Users who are viewing this thread

Back
Top Bottom