Hi Enzo,
The section which returns the number of rows affected is the following:
@Override
public java.lang.Long executeAction() throws Exception
{
// BEGIN USER CODE
return connector.executeStatement(jdbcUrl, userName, password, sql);
// END USER CODE
}
I think the -1 value is a return code provided by the sql server indicating some error with your stored procedure. From what I could find on "-1" it means object is missing.
So if you say it returns 0 when you manually execute the procedure, then you could check if everything is correct regarding your security settings, so if your db user used in the connector has rights on the procedure your executing or on the tables it's adjusting.
Regards