Код: Выделить всё
connection = makeConnection();
CallableStatement callableStatement = connection.prepareCall("{call dbo.delete_orders(?) }");
callableStatement.setString(1, userName);
callableStatement.execute();
callableStatement.close();
Подробнее здесь: https://stackoverflow.com/questions/401 ... -procedure