on 06-10-2006 12:21 PM
Hello Everyone..
I have developed a scenario where i need to execute a stored procedure using the JDBC receiver adapter.
Below is the stored procedure that i am executing
CREATE PROCEDURE usp_select
@name char(10) ,
@company char(10)
AS
Begin
Create Table
Rahul1 (
Name varchar(10) primary key,
Company varchar(10) );
INSERT INTO Rahul1 (Name, Company)
values (@name,@company);
SELECT * from Rahul where Name = @name and Company = @company;
End;
GO
Problem is that only the first query(creating a table) gets executed and not the remaining two.
When i check this stored procedure using the query analyzer, it gets executed perfectly.
Please suggest me what can be wrong.
Thanks and Regards
Rahul Nawale
Rahul,
<i>Problem is that only the first query(creating a table) gets executed and not the remaining two.
When i check this stored procedure using the query analyzer, it gets executed perfectly.</i>
Well, <b>the first time the Table is created and commited by the JDBC adapter</b> and when trying to create a table with the same name the next time for the next inout from the JDBC adapter, it will not be able to do so as such a table already exists.
You want a table to be created for every call to the stored procedure? Am not sure, if you have your Stored Procedure correct. Why do you want to create a atble for every query from the JDBC adapter>?
Regards,
Bhavesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Rahul, What is the DB you are executing your query against?
If it is sybase, please check this weblog from Naveen. This weblog address a scenario when stored procedure has multiple steps and all are not executed.
/people/sap.user72/blog/2006/02/22/xi-recent-enhancements-to-jdbc-adapter
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
89 | |
10 | |
9 | |
9 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.