Using Client Variables When Calling Stored Procedure
I have a ColdFusion function that calls two stored procedures. The first stored procedure ends up inserting data into a remote database and the second stored procedure calls a remote procedure on a remote database.
Each are called using a block of code identical to the code below:
variables.storedProcService = new storedProc();
variables.storedProcService.clear();
variables.storedProcService.setAttributes(datasource="DATASOURCE", procedure="PROCEDURE");
variables.storedProcService.execute();
When I run this function, the calls fail. The error I receive is [Macromedia][SQLServer JDBC Driver]The DBMS returned an unspecified error. The command code was 224. This isn't very helpful, so I had an associate of mine test the function with his ColdFusion environment and it worked just fine. Comparing the two environments, I noticed that he was using the Windows Registry to store client variables, while I was using a database. So I switched to the Windows Registry and the two calls worked just fine. However, I don't want to use the Windows Registry because the current system I support uses a database.
Why would this work with the Windows Registry and not the database? I was under the impression that the same information was stored regardless of the storage mechanism.
