I am executing a stored procedure via standard JDBC Connection using MS SQL Driver version 3.0.
I have found that when I create and insert data into a temporary table the stored procedure doesn't execute properly.
The Java code won't throw a exception, but the javax.sql.ResultSet
will be null
.
The point of failure in the stored procedure is when I un-comment the INSERT INTO #TBL CLM_NAME VALUES('VAL')
When I execute the statement using SQL Studio Manager it executes without hassle and the data as expected.
Has anyone come across this or know why its the case?
Initially I thought its because of the SQL driver and I still think it is?
Thanks.