I am developing an application in B4A using jRDC2 to connect to an MS SQL Server database
In the config file of jRDC2 I wrote the SQL query using the LIKE operator as shown below:
sql.scustomers = SELECT NIT, Name, City FROM Customers WHERE Name LIKE '%?%'
When executing in B4A this SQL query appears in the following Log error:
ResponseError. Reason: java.sql.SQLException: Invalid parameter index 1., Response: <html>
<head>
<meta http-equiv = "Content-Type" content = "text / html; charset = utf-8" />
<title> Error 500 java.sql.SQLException: Invalid parameter index 1. </ title>
</ head>
<body> <h2> HTTP ERROR 500 </ h2>
<p> Problem accessing / rdc. Reason:
<pre> java.sql.SQLException: Invalid parameter index 1. </ pre> </ p> <hr> <a href="http://eclipse.org/jetty"> Powered by Jetty: // 9.4.z -SNAPSHOT </a> <hr />
</ body>
</ html>
I appreciate your help.
In the config file of jRDC2 I wrote the SQL query using the LIKE operator as shown below:
sql.scustomers = SELECT NIT, Name, City FROM Customers WHERE Name LIKE '%?%'
When executing in B4A this SQL query appears in the following Log error:
ResponseError. Reason: java.sql.SQLException: Invalid parameter index 1., Response: <html>
<head>
<meta http-equiv = "Content-Type" content = "text / html; charset = utf-8" />
<title> Error 500 java.sql.SQLException: Invalid parameter index 1. </ title>
</ head>
<body> <h2> HTTP ERROR 500 </ h2>
<p> Problem accessing / rdc. Reason:
<pre> java.sql.SQLException: Invalid parameter index 1. </ pre> </ p> <hr> <a href="http://eclipse.org/jetty"> Powered by Jetty: // 9.4.z -SNAPSHOT </a> <hr />
</ body>
</ html>
I appreciate your help.