“could not find stored procedure”

后端 未结 10 1141
死守一世寂寞
死守一世寂寞 2020-12-20 11:43

I am maintaining a classic ASP website that has a SQL Server 2005 backend. For a small piece of new functionality I wrote a stored procedure to do an insert. This is the o

相关标签:
10条回答
  • 2020-12-20 12:15

    I had the same problem. Eventually I found why. I used a code from web to test output of my procedure. At the end it had a call to Drop(procedure) so I deleted it myself.

    0 讨论(0)
  • 2020-12-20 12:17

    Walk of shame:

    The connection string was pointing at the live database. The error message was completely accurate - the stored procedure was only present in the dev DB. Thanks to all who provided excellent answers, and my apologies for wasting your time.

    0 讨论(0)
  • 2020-12-20 12:17

    make sure that your schema name is in the connection string?

    0 讨论(0)
  • 2020-12-20 12:18

    One more possibility to check. Listing here because it just happened to me and wasn't mentioned;-)

    I had accidentally added a space character on the end of the name. Many hours of trying things before I finally noticed it. It's always something simple after you figure it out.

    0 讨论(0)
提交回复
热议问题