I am using the SQL Database Plug-in to obtain some information. The problem is that when I use a SELECT * FROM table , all the data comes through properly. However, when I use a specific query, the information is not found, even though the same query works correctly when run directly on the SQL server.
Could you help me?
This is the query that is not working
SELECT *
FROM [Data].[dbo].[Datatest]
WHERE ‘cva.tex’ LIKE ‘%’ + REPLACE(BASEFILENAME, ‘*’, ‘’) + ‘%’
and on [Data].[dbo].[Datatest] exist the value cva*
I believe the statement must be either a simple query or a call to a Stored procedure.
In addition, not all SQL functions are supported (it depends on a number of factors, including the driver you’re using). LTRIM() and RTRIM() seem to be supported supported, but I get an error message with REPLACE().
Perhaps someone else in our community with more SQL experience can help. Otherwise, you might want to contact our Support team to see if they can help you figure things out.