The problem I have is when I use the LIKE operator in a SELECT query, in the smartphone it shows all the records and that query should only return 5 records
@Bladimir Silva Toro,
Try the same with the LIKE operator. Make sure the percent signs ('%value%') arrive to the server. If not, enclose with double quote.
It seems that the wildcard (?) Sent from the RDC's config file does not send anything to the LIKE operator in the SQL Server Database. See the image of the SQL Server Profiler
If I do this same query in the SQL Server Mannagent Studio, the same result is returned which returns all the records in the table, see the image
The idea is that you can use the operator like the wildcard (?) Should send this to the database engine.
This is not the way that MS SQL works. The quotation mark (?) defines the PARAMETER substitution to be used.
But your issue is not MS SQL, but in JDBC driver and the PREPARED statement. JDBC is out of my experience.
maybe you want read the official documentation here.