i had few doubts which need clarification. Please help me to get through
i had a stored procedure in my MSSQL Server and i need to call it from java, as per my knowledge i need to perform these steps to call the procedure
- connect to the database(exact location where the procedure is stored)
- call the procedure using callablestatement
CallableStatement cstmt = con.prepareCall("{call getEmployeeDetails(?, ?)}");
Know please give me examples on how to use callablestatement and also how to pass parameters to procedures using java.
/After Establishing the connection to MSSQL database, here goes the code how to call a stored procedure/
/In the above code i called two stored procedures/