Hi fellows!
IĄŻm doing a big sql query with 2 memory variables (cSQL and cWhere).
Something like this:
cSQL = "Select ....From.....Inner Join...."
cWhere = "Where field1 like '%" + upper(textbox1.value) + "%'" + "Or field2 like '%" + lower(textbox2.value) + "%'" ...and so on until I can check out several possibilities of writing. Something like 30 fields that I verify 5 possiblities for each one. A big query!
Then I do:
cSQL = cSQL + cWhere
SQLEXEC(myConnection, cSQL, "cursorName")
Man! It doesnĄŻt work! And i do the same query on console (I use both Firebird and SQL Server) and it returns my records.
I donĄŻt know what to do. I think itĄŻs related to 255 characters limitation per query, am I right
If so, how to concatenate this "monster" together and send to database !!!
Thanks a lot,
Everton