Skip to content
Advertisement

“Could not find stored procedure” error when called from C# application

I created a stored procedure in SQL Server and tried calling it from my C# application but I am getting a message

Could not find stored procedure

I have already tried all possible solutions from “could not find stored procedure”

Here is the definition of my stored procedure (created successfully)

Here is a screenshot of the SELECT from sysobjects table where type = ‘P’ and category = 0 https://ibb.co/x2vFQzw

This is my complete code to call the stored procedure from the C# application:

The last line of the code is where I get the error.

Please help me resolve this error!

Advertisement

Answer

As pointed out by @DimitryTsoy and @JeroenMostert

Adding the following statements did the trick:

DocumentTracking is the database name.

User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement