Call SQL Server 2000 Stored Procedure with in and out parameter

S

Sanjeev

Hello Gurus,

I have following Stored Procedure defined in the SQL Server 2000
database.

CREATE Procedure GetEmpDetails
(
@fromdate varchar(25),
@todate varchar(25)
)
as
Begin
select empno,
ename,
sal,
managerID
from emp
where hiredate between @fromdate and @todate
End

The above Stored Procedure returns more than one rows.
I have to wirte JDBC code which uses Callable Statement.

Could anyone provide me the source code for the same.

Thanks in advance

Regards
Sanjeev
(e-mail address removed)
 
G

GArlington

Hello Gurus,

I have following Stored Procedure defined in the SQL Server 2000
database.

CREATE Procedure GetEmpDetails
(
@fromdate varchar(25),
@todate varchar(25)
)
as
Begin
select empno,
ename,
sal,
managerID
from emp
where hiredate between @fromdate and @todate
End

The above Stored Procedure returns more than one rows.
I have to wirte JDBC code which uses Callable Statement.

Could anyone provide me the source code for the same.

Thanks in advance

Regards
Sanjeev
(e-mail address removed)

How about "java call stored procedure" on google?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,013
Latest member
KatriceSwa

Latest Threads

Top