I m using Tomacat to run a web-application. Used stored procedure to access data from MSSQL Server. But when i re-run the application, it always calls the old stored procedure,while the result displayed in the Query Analyser is the modified one. Tried restarting the server as well as deleting the work folder and the generated class files too. But no change.
Even if i add/remove a parameter in the already created stored procedure it refuses to accept it. Gives an SQLException sayin the parameter is coded.Checked the code.. No errors with the code..
Hello there, Not sure if this thread is relevant in a JSP forum; Maybe you can try deleting and recreating the procedure, create it under a new name etc and then try to call it. Maybe check how you're connecting to the database to make sure you're going to the right table. This should not be related in any way to the fact that you're running JSP in Tomcat.
It might be that the stored procedure is attached to a specific user or defined on both a user and system level. That's the most common case I've seen for the problem you're describing.
Query Analyzer does some nice things for you and figures out users whereas direct JDBC often only has access to specific items based on the user you logged in as. Try calling the procedure with the user's name.